From 78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88 Mon Sep 17 00:00:00 2001 From: wens Date: Tue, 25 Jan 2005 04:36:25 +0000 Subject: use ctime4 for compat on x86_64 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2430 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/angel.c | 2 +- util/reaper.c | 2 +- util/shmctl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'util') 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); -- cgit v1.2.3