diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/go.c | 2 | ||||
-rw-r--r-- | mbbsd/voteboard.c | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -837,7 +837,7 @@ gochess(int fd) int n; //move(5, 46); n = sprintf(buf, ANSI_MOVETO(6,47) "%s 方時間:%02d:%02d ", - bw_chess[gd.me - 1], mtime / 60, mtime % 60); + bw_chess[gd.me - 1], (int)mtime / 60, (int)mtime % 60); if (mhand <= 25) n += sprintf(buf + n, "%2d 手", 25 - mhand); output(buf, n); diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c index 17f1f945..864aeb02 100644 --- a/mbbsd/voteboard.c +++ b/mbbsd/voteboard.c @@ -15,7 +15,7 @@ do_voteboardreply(const fileheader_t * fhdr) fileheader_t votefile; int yes=0, no=0, len; int fd; - time4_t endtime=0; + unsigned long endtime=0; clear(); @@ -55,8 +55,8 @@ do_voteboardreply(const fileheader_t * fhdr) if (!strncmp(genbuf, "連署結束時間", 12)) { ptr = strchr(genbuf, '('); assert(ptr); - sscanf(ptr + 1, "%d", &endtime); - if (endtime < now) { + sscanf(ptr + 1, "%lu", &endtime); + if (endtime < (unsigned long)now) { vmsg("連署時間已過"); fclose(fi); return; |