summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-25 12:36:25 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-25 12:36:25 +0800
commit78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88 (patch)
tree437f96f3c6e2547b8b816d77ecd9337aadadf048 /util
parent73bf6bd6489ef38af4df15ab768bc50744785fdf (diff)
downloadpttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.gz
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.bz2
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.lz
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.xz
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.zst
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.zip
use ctime4 for compat on x86_64
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2430 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/angel.c2
-rw-r--r--util/reaper.c2
-rw-r--r--util/shmctl.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/util/angel.c b/util/angel.c
index f074285f..247f4f02 100644
--- a/util/angel.c
+++ b/util/angel.c
@@ -144,7 +144,7 @@ void sendResult(){
"時間: %s\n"
"\n現在全站小天使有 %d 位\n"
"\n小主人人數最多的 %d 位小天使:\n",
- Cdate(&t), count, nReport);
+ ctime4(&t), count, nReport);
for (i = 0; i < nReport; ++i)
fprintf(fp, "%15s %5d 人\n", SHM->userid[list[i][1] - 1], list[i][0]);
fprintf(fp, "\n現在男女皆收的小天使有 %d 位\n"
diff --git a/util/reaper.c b/util/reaper.c
index f67d38ac..5c065a71 100644
--- a/util/reaper.c
+++ b/util/reaper.c
@@ -32,7 +32,7 @@ int check(int n, userec_t *u) {
int unum;
unum = searchuser(u->userid);
- strcpy(buf, Cdate(&u->lastlogin));
+ strcpy(buf, ctime4(&u->lastlogin));
syslog(LOG_NOTICE, "kill user(%d): %s %s", unum, u->userid, buf);
sprintf(buf, "mv home/%c/%s tmp/", u->userid[0], u->userid);
if(system(buf))
diff --git a/util/shmctl.c b/util/shmctl.c
index 143bb64a..bbf0239e 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -187,7 +187,7 @@ int utmpfix(int argc, char **argv)
idle[i].idle >
(timeout == -1 ? IDLE_TIMEOUT : timeout) ){
sprintf(buf, "timeout(%s)",
- Cdate(&SHM->uinfo[which].lastact));
+ ctime4(&SHM->uinfo[which].lastact));
clean = buf;
if( SHM->uinfo[which].pid > 0 )
kill(SHM->uinfo[which].pid, SIGHUP);