summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/account.c5
-rw-r--r--util/shmctl.c4
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;
}