summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-04 18:52:45 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-04 18:52:45 +0800
commit10d9931212b7fa65cb062bbd9ec8714877b651ce (patch)
tree5bb7a0604e590165c8b770c4c19d677187832097
parentae2aa394c8861cd7823fa9c436892491afb6411e (diff)
downloadpttbbs-10d9931212b7fa65cb062bbd9ec8714877b651ce.tar
pttbbs-10d9931212b7fa65cb062bbd9ec8714877b651ce.tar.gz
pttbbs-10d9931212b7fa65cb062bbd9ec8714877b651ce.tar.bz2
pttbbs-10d9931212b7fa65cb062bbd9ec8714877b651ce.tar.lz
pttbbs-10d9931212b7fa65cb062bbd9ec8714877b651ce.tar.xz
pttbbs-10d9931212b7fa65cb062bbd9ec8714877b651ce.tar.zst
pttbbs-10d9931212b7fa65cb062bbd9ec8714877b651ce.zip
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1395 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/proto.h1
-rw-r--r--mbbsd/voteboard.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h
index 63c146a2..42940cd5 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -269,6 +269,7 @@ int ticket(int bid);
/* gomo */
int gomoku(int fd);
+int getstyle(int x, int y, int color, int limit);
/* guess */
int guess_main();
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c
index eb38d9a4..897f68f9 100644
--- a/mbbsd/voteboard.c
+++ b/mbbsd/voteboard.c
@@ -62,7 +62,7 @@ do_voteboardreply(fileheader_t * fhdr)
if(yes>=0) continue;
strtok(genbuf+4," \n");
- if (!strncmp(genbuf + 4, cuser.userid, len)) {
+ if (!strncmp(genbuf + 4, cuser.userid, IDLEN)) {
move(5, 10);
prints("您已經連署過本篇了");
getdata(17, 0, "要修改您之前的連署嗎?(Y/N) [N]", opnion, 3, LCECHO);