diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-27 00:13:56 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-27 00:13:56 +0800 |
commit | 9aea9f1fa692db1d9db6b55d78715f9ee22402ba (patch) | |
tree | 076961cc8d792651767d398e022b6873652ae2ab /util | |
parent | 03c5aaa42eefc2a6d8bbece0eb08adaf3e016ba1 (diff) | |
download | pttbbs-9aea9f1fa692db1d9db6b55d78715f9ee22402ba.tar pttbbs-9aea9f1fa692db1d9db6b55d78715f9ee22402ba.tar.gz pttbbs-9aea9f1fa692db1d9db6b55d78715f9ee22402ba.tar.bz2 pttbbs-9aea9f1fa692db1d9db6b55d78715f9ee22402ba.tar.lz pttbbs-9aea9f1fa692db1d9db6b55d78715f9ee22402ba.tar.xz pttbbs-9aea9f1fa692db1d9db6b55d78715f9ee22402ba.tar.zst pttbbs-9aea9f1fa692db1d9db6b55d78715f9ee22402ba.zip |
remove dead program.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3303 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/Makefile | 2 | ||||
-rw-r--r-- | util/rmuid.c | 52 |
2 files changed, 1 insertions, 53 deletions
diff --git a/util/Makefile b/util/Makefile index cc94fdd5..63f3552f 100644 --- a/util/Makefile +++ b/util/Makefile @@ -20,7 +20,7 @@ MBBSD_OBJS= \ CPROG_WITH_UTIL= \ boardlist BM_money post poststat \ jungo account birth deluserfile \ - expire mandex rmuid horoscope \ + expire mandex horoscope \ openvice parse_news openticket topusr \ yearsold toplazyBM toplazyBBM writemoney \ reaper buildAnnounce inndBM mailangel \ diff --git a/util/rmuid.c b/util/rmuid.c deleted file mode 100644 index b528e01d..00000000 --- a/util/rmuid.c +++ /dev/null @@ -1,52 +0,0 @@ -/* $Id$ */ -#include <stdio.h> - -#if 0 -#include "bbs.h" - -extern int numboards; -extern boardheader_t *bcache; - -int getbidofuid(int uid) -{ - register int n; boardheader_t *bh; - if(!uid) return 1; - for (n=0;n<numboards;n++) - { - bh = &bcache[n]; - /* unused == uid!? don't use a variable claimed as 'unused!' */ - if(bh->unused == uid) - return n+1; - } - return 1; -} -#endif - -int main(int argc, char* argv[]) -{ - fprintf(stderr, "This utility is marked as broken.\n"); - -#if 0 - //struct stat st; - int n; - boardheader_t bh; - //char pathname[1024]; - - attach_SHM(); - 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); - } -#endif - return 0; -} - - - - - - - |