summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-21 13:27:03 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-21 13:27:03 +0800
commiteb0a60c7959bafdff115a1b911dafcb52db6d9e8 (patch)
tree0e6c8fdad0b0452e28727c5ee42fc7c58dcce9d5
parentdb28202fdc5f1975e62e937437889576a69d45ce (diff)
downloadpttbbs-eb0a60c7959bafdff115a1b911dafcb52db6d9e8.tar
pttbbs-eb0a60c7959bafdff115a1b911dafcb52db6d9e8.tar.gz
pttbbs-eb0a60c7959bafdff115a1b911dafcb52db6d9e8.tar.bz2
pttbbs-eb0a60c7959bafdff115a1b911dafcb52db6d9e8.tar.lz
pttbbs-eb0a60c7959bafdff115a1b911dafcb52db6d9e8.tar.xz
pttbbs-eb0a60c7959bafdff115a1b911dafcb52db6d9e8.tar.zst
pttbbs-eb0a60c7959bafdff115a1b911dafcb52db6d9e8.zip
typeo
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@951 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/shmctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pttbbs/util/shmctl.c b/pttbbs/util/shmctl.c
index 86e65cb3..b7ca5dab 100644
--- a/pttbbs/util/shmctl.c
+++ b/pttbbs/util/shmctl.c
@@ -1,4 +1,4 @@
-/* $Id: shmctl.c,v 1.42 2003/05/17 04:41:02 victor Exp $ */
+/* $Id: shmctl.c,v 1.43 2003/06/21 05:27:03 in2 Exp $ */
#include "bbs.h"
#include <sys/wait.h>
@@ -303,7 +303,7 @@ char *CTIMEx(char *buf, time_t t)
return buf;
}
-int utmpstate(int argc, char **argv)
+int utmpstatus(int argc, char **argv)
{
time_t now;
char upbuf[64], nowbuf[64];
@@ -325,7 +325,7 @@ int utmpstate(int argc, char **argv)
int utmpreset(int argc, char **argv)
{
SHM->UTMPbusystate=0;
- utmpstate(0, NULL);
+ utmpstatus(0, NULL);
return 0;
}
@@ -425,7 +425,7 @@ struct {
} cmd[] =
{ {utmpfix, "utmpfix", "clear dead userlist entry"},
{utmpsortd, "utmpsortd", "utmp sorting daemon"},
- {utmpstate, "utmpstate", "list utmpstate"},
+ {utmpstatus, "utmpstatus", "list utmpstatus"},
{utmpreset, "utmpreset", "SHM->busystate=0"},
{utmpwatch, "utmpwatch", "to see if busystate is always 1 then fix it"},
{utmpnum, "utmpnum", "print SHM->number for snmpd"},