summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-25 13:33:25 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-25 13:33:25 +0800
commitf1d0503c4fd4f103c10c6b609e7e078a586bf6ab (patch)
tree9a546b99209a6822bb648c757adc75972f7f1b59 /mbbsd/bbs.c
parentbbb6b692de2cc853deff9702aa95fe323beb2fd8 (diff)
downloadpttbbs-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.c5
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,