summaryrefslogtreecommitdiffstats
path: root/mbbsd/announce.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 22:06:48 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-24 22:06:48 +0800
commit9084d9602e8725a6fb832d4396c12ddd7bb2b7c7 (patch)
tree78d04dab42a50e73845c8e31eb877001fb8379cd /mbbsd/announce.c
parentf6324fdcb56a70815842cc39cb1826ce6b82148c (diff)
downloadpttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.gz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.bz2
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.lz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.xz
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.tar.zst
pttbbs-9084d9602e8725a6fb832d4396c12ddd7bb2b7c7.zip
use time4_t(uint32_t) instead of time_t for x86-64 arch.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2426 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r--mbbsd/announce.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index 2ac04137..aad29a92 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -36,9 +36,9 @@ a_loadname(menu_t * pm)
}
static void
-a_timestamp(char *buf, time_t * time)
+a_timestamp(char *buf, time4_t *time)
{
- struct tm *pt = localtime(time);
+ struct tm *pt = localtime4(time);
sprintf(buf, "%02d/%02d/%02d", pt->tm_mon + 1, pt->tm_mday, (pt->tm_year + 1900) % 100);
}
@@ -50,7 +50,7 @@ a_showmenu(menu_t * pm)
int n;
fileheader_t *item;
char buf[PATHLEN];
- time_t dtime;
+ time4_t dtime;
showtitle("精華文章", pm->mtitle);
prints(" \033[1;36m編號 標 題%56s\033[0m",