diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:42:47 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:42:47 +0800 |
commit | 44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1 (patch) | |
tree | 3c0f0449f924966930ad958f26151386a4bd7ea7 | |
parent | 223f3276b226eaf9c4cec80a208e74e7434e615a (diff) | |
download | pttbbs-44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1.tar pttbbs-44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1.tar.gz pttbbs-44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1.tar.bz2 pttbbs-44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1.tar.lz pttbbs-44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1.tar.xz pttbbs-44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1.tar.zst pttbbs-44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1.zip |
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@298 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | util/account.c | 5 | ||||
-rw-r--r-- | util/shmctl.c | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/util/account.c b/util/account.c index cfc9f911..4512747f 100644 --- a/util/account.c +++ b/util/account.c @@ -1,4 +1,4 @@ -/* $Id: account.c,v 1.5 2002/06/06 21:34:14 in2 Exp $ */ +/* $Id: account.c,v 1.6 2002/06/06 21:42:47 in2 Exp $ */ #include "bbs.h" #define MAX_LINE 16 @@ -86,9 +86,6 @@ void gzip(source, target, stamp) system(buf); } -extern struct fromcache_t *fcache; -extern uhash_t *uhash; - int main() { int hour, max, item, total, i, j, mo, da, max_user = 0, max_login = 0, max_reg = 0, mahour = 0, k; diff --git a/util/shmctl.c b/util/shmctl.c index e264eb48..791926e7 100644 --- a/util/shmctl.c +++ b/util/shmctl.c @@ -1,4 +1,4 @@ -/* $Id: shmctl.c,v 1.19 2002/06/06 21:34:14 in2 Exp $ */ +/* $Id: shmctl.c,v 1.20 2002/06/06 21:42:47 in2 Exp $ */ #include "bbs.h" extern SHM_t *SHM; @@ -253,7 +253,7 @@ int utmpwatch(int argc, char **argv) int utmpnum(int argc, char **argv) { - printf("%d.0\n", SHM->number); + printf("%d.0\n", SHM->UTMPnumber); return 0; } |