diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-24 22:06:48 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-24 22:06:48 +0800 |
commit | 9084d9602e8725a6fb832d4396c12ddd7bb2b7c7 (patch) | |
tree | 78d04dab42a50e73845c8e31eb877001fb8379cd /mbbsd/edit.c | |
parent | f6324fdcb56a70815842cc39cb1826ce6b82148c (diff) | |
download | pttbbs-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/edit.c')
-rw-r--r-- | mbbsd/edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 76bd9c83..09cd5591 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -948,7 +948,7 @@ write_header(FILE * fp, int ifuseanony) // FIXME unused char author[IDLEN + 1]; char board[IDLEN + 1]; char title[66]; - time_t date; /* last post's date */ + time4_t date; /* last post's date */ int number; /* post number */ } postlog; @@ -1012,7 +1012,7 @@ write_header(FILE * fp, int ifuseanony) // FIXME unused } save_title[72] = '\0'; - fprintf(fp, "標題: %s\n時間: %s\n", save_title, ctime(&now)); + fprintf(fp, "標題: %s\n時間: %s\n", save_title, Cdate(&now)); } void @@ -1201,7 +1201,7 @@ write_file(char *fpath, int saveheader, int *islocal) && strcmp(currboard, "SYSOP") == 0 #endif ) { - ptime = localtime(&now); + ptime = localtime4(&now); fprintf(fp, "※ 編輯: %-15s 來自: %-20s (%02d/%02d %02d:%02d)\n", cuser.userid, fromhost, @@ -1775,7 +1775,7 @@ vedit(char *fpath, int saveheader, int *islocal) int destuid0 = currutmp->destuid; int money = 0; int interval = 0; - time_t th = now; + time4_t th = now; int count = 0, tin = 0; textline_t *oldcurrline; |