summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"