From f95b868ac90da4643235079bdeb05b43ddbc3c4f Mon Sep 17 00:00:00 2001 From: wens Date: Tue, 25 Jan 2005 06:13:26 +0000 Subject: change time_t to time4_t git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/poststat.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/poststat.c b/util/poststat.c index abd6ef0f..ad552896 100644 --- a/util/poststat.c +++ b/util/poststat.c @@ -35,12 +35,17 @@ struct posttop char author[13]; /* author name */ char board[13]; /* board name */ char title[66]; /* title name */ - time_t date; /* last post's date */ + time4_t date; /* last post's date */ int number; /* post number */ } top[TOPCOUNT], *tp; +char * ctime4(time4_t * clock) +{ + time_t temp = *clock; + return ctime(&temp); +} /* woju @@ -295,7 +300,7 @@ poststat(mytype) if (filter(tp->board)) continue; - strcpy(buf, ctime(&(tp->date))); + strcpy(buf, ctime4(&(tp->date))); buf[20] = 0; fprintf(fp, "%3d. ¬ÝªO : %-16s¡m %s¡n%4d ½g%16s\n" -- cgit v1.2.3