diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-25 14:13:26 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-25 14:13:26 +0800 |
commit | f95b868ac90da4643235079bdeb05b43ddbc3c4f (patch) | |
tree | cc86556c35b46a1f0cb2925464aaa5af93110ea7 /util | |
parent | a325c7e100f4cd81be447eb430f5b1b32e0d806f (diff) | |
download | pttbbs-f95b868ac90da4643235079bdeb05b43ddbc3c4f.tar pttbbs-f95b868ac90da4643235079bdeb05b43ddbc3c4f.tar.gz pttbbs-f95b868ac90da4643235079bdeb05b43ddbc3c4f.tar.bz2 pttbbs-f95b868ac90da4643235079bdeb05b43ddbc3c4f.tar.lz pttbbs-f95b868ac90da4643235079bdeb05b43ddbc3c4f.tar.xz pttbbs-f95b868ac90da4643235079bdeb05b43ddbc3c4f.tar.zst pttbbs-f95b868ac90da4643235079bdeb05b43ddbc3c4f.zip |
change time_t to time4_t
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2432 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/poststat.c | 9 |
1 files changed, 7 insertions, 2 deletions
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, "[1;31m%3d. [33m¬ÝªO : [32m%-16s[35m¡m %s¡n[36m%4d ½g[33m%16s\n" |