From b8b8c55600841d87c464f5877559351a970cd965 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 8 Jun 2005 12:11:03 +0000 Subject: eliminate warnings git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2804 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/go.c | 2 +- mbbsd/voteboard.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mbbsd/go.c b/mbbsd/go.c index 9cf1e0ac..e3bc0418 100644 --- a/mbbsd/go.c +++ b/mbbsd/go.c @@ -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; -- cgit v1.2.3