summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-25 14:13:26 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-25 14:13:26 +0800
commitf95b868ac90da4643235079bdeb05b43ddbc3c4f (patch)
treecc86556c35b46a1f0cb2925464aaa5af93110ea7
parenta325c7e100f4cd81be447eb430f5b1b32e0d806f (diff)
downloadpttbbs-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
-rw-r--r--util/poststat.c9
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,
"%3d. ¬ÝªO : %-16s¡m %s¡n%4d ½g%16s\n"