summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-30 19:40:50 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-30 19:40:50 +0800
commit5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2 (patch)
treef8d78fbd4728008a94120b34b1a9df745dc70fd4
parentbe280eabd789c6a131f33eda360b3cf6aca797c5 (diff)
downloadpttbbs-5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2.tar
pttbbs-5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2.tar.gz
pttbbs-5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2.tar.bz2
pttbbs-5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2.tar.lz
pttbbs-5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2.tar.xz
pttbbs-5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2.tar.zst
pttbbs-5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2.zip
- fix compiler warnings
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4047 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c2
-rw-r--r--mbbsd/talk.c2
-rw-r--r--mbbsd/user.c5
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);