diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-25 13:33:25 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-25 13:33:25 +0800 |
commit | f1d0503c4fd4f103c10c6b609e7e078a586bf6ab (patch) | |
tree | 9a546b99209a6822bb648c757adc75972f7f1b59 /mbbsd/bbs.c | |
parent | bbb6b692de2cc853deff9702aa95fe323beb2fd8 (diff) | |
download | pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.gz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.bz2 pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.lz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.xz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.zst pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.zip |
eliminate compiler warnings (mostly signed/unsigned)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3082 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 114e4ad0..a142286f 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -338,7 +338,7 @@ readdoent(int num, fileheader_t * ent) } if (*p && l <= 0) - strcpy(p-3, " …"); + strcpy((char*)p-3, " …"); } if (!strncmp(title, "[公告]", 6)) @@ -1179,10 +1179,11 @@ edit_post(int ent, fileheader_t * fhdr, const char *direct) { int c = 0; struct tm *ptime; + time_t xt = (time_t)newstat.st_mtime; fprintf(fp, MSG_SEPERATOR "\n"); fprintf(fp, "以下為被別人修改過的最新內容: "); - ptime = localtime4(&newstat.st_mtime); + ptime = localtime4(&xt); fprintf(fp, " (%02d/%02d %02d:%02d)\n", ptime->tm_mon + 1, ptime->tm_mday, |