summaryrefslogtreecommitdiffstats
path: root/mbbsd/voteboard.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 20:11:03 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 20:11:03 +0800
commitb8b8c55600841d87c464f5877559351a970cd965 (patch)
tree260182182f9ccf5724db286c92eabe40dbd81c74 /mbbsd/voteboard.c
parent71f79c7083cc15749079d7241ca46f186f304012 (diff)
downloadpttbbs-b8b8c55600841d87c464f5877559351a970cd965.tar
pttbbs-b8b8c55600841d87c464f5877559351a970cd965.tar.gz
pttbbs-b8b8c55600841d87c464f5877559351a970cd965.tar.bz2
pttbbs-b8b8c55600841d87c464f5877559351a970cd965.tar.lz
pttbbs-b8b8c55600841d87c464f5877559351a970cd965.tar.xz
pttbbs-b8b8c55600841d87c464f5877559351a970cd965.tar.zst
pttbbs-b8b8c55600841d87c464f5877559351a970cd965.zip
eliminate warnings
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2804 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/voteboard.c')
-rw-r--r--mbbsd/voteboard.c6
1 files changed, 3 insertions, 3 deletions
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;