summaryrefslogtreecommitdiffstats
path: root/mbbsd/chicken.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/chicken.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/chicken.c')
-rw-r--r--mbbsd/chicken.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mbbsd/chicken.c b/mbbsd/chicken.c
index c1b3cf20..6881a9dc 100644
--- a/mbbsd/chicken.c
+++ b/mbbsd/chicken.c
@@ -137,7 +137,7 @@ new_chicken()
log_file(CHICKENLOG, LOG_CREAT | LOG_VF,
"\033[31m%s \033[m養了一隻叫\033[33m %s \033[m的 "
"\033[32m%s\033[m 於 %s\n", cuser.userid,
- mychicken->name, chicken_type[(int)mychicken->type], ctime(&now));
+ mychicken->name, chicken_type[(int)mychicken->type], Cdate(&now));
mychicken->lastvisit = mychicken->birthday = mychicken->cbirth = now;
mychicken->food = 0;
mychicken->weight = time_change[(int)mychicken->type][WEIGHT] / 3;
@@ -162,7 +162,7 @@ show_chicken_stat(chicken_t * thechicken)
{
struct tm *ptime;
- ptime = localtime(&thechicken->birthday);
+ ptime = localtime4(&thechicken->birthday);
prints(" Name :\033[33m%s\033[m (\033[32m%s\033[m)%*s生日 "
":\033[31m%02d\033[m年\033[31m%2d\033[m月\033[31m%2d\033[m日 "
"(\033[32m%s %d歲\033[m)\n"
@@ -431,7 +431,7 @@ ch_kill()
log_file(CHICKENLOG, LOG_CREAT | LOG_VF,
"\033[31m%s \033[m把 \033[33m%s\033[m\033[32m %s "
"\033[m宰了 於 %s\n", cuser.userid, mychicken->name,
- chicken_type[(int)mychicken->type], ctime(&now));
+ chicken_type[(int)mychicken->type], Cdate(&now));
mychicken->name[0] = 0;
}
}
@@ -489,7 +489,7 @@ ch_sell()
"\033[31m%s\033[m 把 \033[33m%s\033[m "
"\033[32m%s\033[m 用 \033[36m%d\033[m 賣了 於 %s\n",
cuser.userid, mychicken->name,
- chicken_type[(int)mychicken->type], money, ctime(&now));
+ chicken_type[(int)mychicken->type], money, Cdate(&now));
mychicken->lastvisit = mychicken->name[0] = 0;
passwd_update(usernum, &cuser);
more(CHICKEN_PIC "/sell", YEA);
@@ -645,7 +645,7 @@ deadtype(chicken_t * thechicken)
log_file(CHICKENLOG, LOG_CREAT | LOG_VF,
"\033[31m%s\033[m 所疼愛的\033[33m %s\033[32m %s "
"\033[m掛了 於 %s\n", cuser.userid, thechicken->name,
- chicken_type[(int)thechicken->type], ctime(&now));
+ chicken_type[(int)thechicken->type], Cdate(&now));
mychicken->name[0] = 0;
passwd_update(usernum, &cuser);
}
@@ -703,7 +703,7 @@ ch_changename()
"\033[31m%s\033[m 把疼愛的\033[33m %s\033[32m %s "
"\033[m改名為\033[33m %s\033[m 於 %s\n",
cuser.userid, mychicken->name,
- chicken_type[(int)mychicken->type], newname, ctime(&now));
+ chicken_type[(int)mychicken->type], newname, Cdate(&now));
}
}