diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-21 13:27:03 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-21 13:27:03 +0800 |
commit | 19e626a9f2b9511a2bc5f632cd80c5b3a9c1902b (patch) | |
tree | 6a29278284e5971c6f486590f2173646345c4138 | |
parent | 44fdedde822b902859a5aa7a0bdfd26c964506da (diff) | |
download | pttbbs-19e626a9f2b9511a2bc5f632cd80c5b3a9c1902b.tar pttbbs-19e626a9f2b9511a2bc5f632cd80c5b3a9c1902b.tar.gz pttbbs-19e626a9f2b9511a2bc5f632cd80c5b3a9c1902b.tar.bz2 pttbbs-19e626a9f2b9511a2bc5f632cd80c5b3a9c1902b.tar.lz pttbbs-19e626a9f2b9511a2bc5f632cd80c5b3a9c1902b.tar.xz pttbbs-19e626a9f2b9511a2bc5f632cd80c5b3a9c1902b.tar.zst pttbbs-19e626a9f2b9511a2bc5f632cd80c5b3a9c1902b.zip |
typeo
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@951 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | util/shmctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/shmctl.c b/util/shmctl.c index 86e65cb3..b7ca5dab 100644 --- a/util/shmctl.c +++ b/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"}, |