summaryrefslogtreecommitdiffstats
path: root/mbbsd/cal.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-25 12:36:25 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-25 12:36:25 +0800
commit78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88 (patch)
tree437f96f3c6e2547b8b816d77ecd9337aadadf048 /mbbsd/cal.c
parent73bf6bd6489ef38af4df15ab768bc50744785fdf (diff)
downloadpttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.gz
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.bz2
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.lz
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.xz
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.zst
pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.zip
use ctime4 for compat on x86_64
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2430 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r--mbbsd/cal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index b2b877d8..1e58d53f 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -330,7 +330,7 @@ mail_redenvelop(char *from, char *to, int money, char mode)
"\033[1;33m親愛的 %s :\n\n\033[m"
"\033[1;31m 我包給你一個 %d 元的大紅包喔 ^_^\n\n"
" 禮輕情意重,請笑納...... ^_^\033[m\n",
- from, Cdate(&now), to, money);
+ from, ctime4(&now), to, money);
fclose(fp);
snprintf(fhdr.title, sizeof(fhdr.title), "招財進寶");
strlcpy(fhdr.owner, from, sizeof(fhdr.owner));
@@ -376,7 +376,7 @@ p_give()
deumoney(searchuser(id), money - tax);
demoney(-money);
log_file(FN_MONEY, LOG_CREAT | LOG_VF, "%s\t給%s\t%d\t%s",
- cuser.userid, id, money - tax, Cdate(&now));
+ cuser.userid, id, money - tax, ctime4(&now));
#ifdef PLAY_ANGEL
getuser(id);
if (!strcmp(xuser.myangel, cuser.userid)){
@@ -416,7 +416,7 @@ p_sysinfo(void)
#else
MAX_ACTIVE,
#endif
- compile_time, Cdate(&start_time));
+ compile_time, ctime4(&start_time));
if (HAS_PERM(PERM_SYSOP)) {
struct rusage ru;
getrusage(RUSAGE_SELF, &ru);