From 44ace6a0c2f9aa92ce44bcd6f8d97e6e25a899b1 Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 6 Jun 2002 21:42:47 +0000 Subject: fix bug git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@298 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/account.c | 5 +---- 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; } -- cgit v1.2.3