summaryrefslogtreecommitdiffstats
path: root/util/rmuid.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-10 01:44:39 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-10 01:44:39 +0800
commitdc1e907c2cf1038a9dc24a4f4969a8403097bd85 (patch)
treead37009f7662f3204509a196b8eaa74f0586e37f /util/rmuid.c
parent90451291f8f509d0f0e3f1c442bb3325de30d9b0 (diff)
downloadpttbbs-dc1e907c2cf1038a9dc24a4f4969a8403097bd85.tar
pttbbs-dc1e907c2cf1038a9dc24a4f4969a8403097bd85.tar.gz
pttbbs-dc1e907c2cf1038a9dc24a4f4969a8403097bd85.tar.bz2
pttbbs-dc1e907c2cf1038a9dc24a4f4969a8403097bd85.tar.lz
pttbbs-dc1e907c2cf1038a9dc24a4f4969a8403097bd85.tar.xz
pttbbs-dc1e907c2cf1038a9dc24a4f4969a8403097bd85.tar.zst
pttbbs-dc1e907c2cf1038a9dc24a4f4969a8403097bd85.zip
no warning
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@16 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/rmuid.c')
-rw-r--r--util/rmuid.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/util/rmuid.c b/util/rmuid.c
index cc6e12cb..c936d160 100644
--- a/util/rmuid.c
+++ b/util/rmuid.c
@@ -26,20 +26,21 @@ int getbidofuid(int uid)
return 1;
}
-int main(int argc, char* argv[]){
-struct stat st;
- int n;
- boardheader_t bh;
- char pathname[1024];
-
- resolve_boards();
- for (n=0;n<numboards;n++)
- {
+int main(int argc, char* argv[])
+{
+ //struct stat st;
+ int n;
+ boardheader_t bh;
+ //char pathname[1024];
+
+ resolve_boards();
+ for (n=0;n<numboards;n++){
memcpy( &bh, &bcache[n], sizeof(bh));
bh.gid=getbidofuid(bh.gid);
//printf("%14.14s%14.14s \r\n",bh.brdname, bh.title);
substitute_record("BOARDS.bid", &bh, sizeof(bh), n+1);
}
+ return 0;
}