diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/board.c | 2 | ||||
-rw-r--r-- | mbbsd/talk.c | 2 | ||||
-rw-r--r-- | mbbsd/user.c | 5 |
3 files changed, 5 insertions, 4 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index cc8304c9..e4165e35 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1882,7 +1882,7 @@ choose_board(int newflag) vmsg("已儲存看板閱\讀記錄"); } else vmsgf("間隔時間太近,未儲存看板閱\讀記錄 [請等 %d 秒後再試]", - 600 - (now-last_save_fav_and_brc)); + (int)(600 - (now-last_save_fav_and_brc))); break; /////////////////////////////////////////////////////// diff --git a/mbbsd/talk.c b/mbbsd/talk.c index aab25b28..1468221a 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1514,7 +1514,7 @@ do_talk(int fd) break; move(b_lines-2, 0); prints(ANSI_COLOR(0;1;3%d) "請正確輸入 c 或 m 的指令。" ANSI_RESET, - (now % 7)+1); + (int)((now % 7)+1)); if (ans[0] == 0) outs("為避免誤按所以只 ENTER 是不行的。"); } diff --git a/mbbsd/user.c b/mbbsd/user.c index cbbcd96b..81fe9111 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -169,8 +169,9 @@ user_display(const userec_t * u, int adminmode) prints(" 小 天 使: %s\n", u->myangel[0] ? u->myangel : "無"); #endif - prints(" 註冊日期: %s (已滿%d天)", - ctime4(&u->firstlogin), (now-u->firstlogin)/86400); + prints(" 註冊日期: (已滿%d天) %s", + (int)((now - u->firstlogin)/86400), + ctime4(&u->firstlogin)); prints(" 前次光臨: %s", ctime4(&u->lastlogin)); prints(" 上站文章: %d 次 / %d 篇\n", u->numlogins, u->numposts); |