diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-30 19:40:50 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-30 19:40:50 +0800 |
commit | 5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2 (patch) | |
tree | f8d78fbd4728008a94120b34b1a9df745dc70fd4 /mbbsd/user.c | |
parent | be280eabd789c6a131f33eda360b3cf6aca797c5 (diff) | |
download | pttbbs-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
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |