diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-29 21:45:28 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-29 21:45:28 +0800 |
commit | 6deb8c095903d745226ea2a6935d41f8cd0bb499 (patch) | |
tree | 5d69d0ae00c377735e10733c43aa12c435e50620 /mbbsd/vote.c | |
parent | 52c2b95ecfa594e4e16c0fa346e6006c03b48fe5 (diff) | |
download | pttbbs-6deb8c095903d745226ea2a6935d41f8cd0bb499.tar pttbbs-6deb8c095903d745226ea2a6935d41f8cd0bb499.tar.gz pttbbs-6deb8c095903d745226ea2a6935d41f8cd0bb499.tar.bz2 pttbbs-6deb8c095903d745226ea2a6935d41f8cd0bb499.tar.lz pttbbs-6deb8c095903d745226ea2a6935d41f8cd0bb499.tar.xz pttbbs-6deb8c095903d745226ea2a6935d41f8cd0bb499.tar.zst pttbbs-6deb8c095903d745226ea2a6935d41f8cd0bb499.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@70 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r-- | mbbsd/vote.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c index b16857ce..8835a483 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -1,4 +1,4 @@ -/* $Id: vote.c,v 1.2 2002/03/09 17:27:57 in2 Exp $ */ +/* $Id: vote.c,v 1.3 2002/03/29 13:45:28 ptt Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -304,7 +304,7 @@ static void b_result(boardheader_t *fh) { char temp[STRLEN]; now = time(NULL); - for(i = 0; i < 9; i++) { + for(i = 0; i < 20; i++) { if(i) sprintf(STR_new_control, "%s%d", STR_bv_control, i); else @@ -511,7 +511,7 @@ static int vote_view_all(char *bname) { fclose(xfp); } - for(i = 1; i < 9; i++) { + for(i = 1; i < 20; i++) { sprintf(STR_new_control, "%s%d", STR_bv_control, i); sprintf(STR_new_title, "%s%d", STR_bv_title, i); setbfile(buf, bname, STR_new_control); @@ -593,7 +593,7 @@ static int vote_maintain(char *bname) { setbfile(buf, bname, STR_bv_title); unlink(buf); - for(i = 1; i < 9; i++) { + for(i = 1; i < 20; i++) { sprintf(STR_new_ballots, "%s%d", STR_bv_ballots, i); sprintf(STR_new_control, "%s%d", STR_bv_control, i); sprintf(STR_new_desc, "%s%d", STR_bv_desc, i); @@ -626,7 +626,7 @@ static int vote_maintain(char *bname) { strcpy(STR_new_control, STR_bv_control); setbfile(buf,bname, STR_new_control); x = 0; - while(x < 9 && (fp = fopen(buf,"r")) != NULL) { + while(x < 20 && (fp = fopen(buf,"r")) != NULL) { fclose(fp); x++; sprintf(STR_new_control, "%s%d", STR_bv_control, x); @@ -634,7 +634,7 @@ static int vote_maintain(char *bname) { } if(fp) fclose(fp); - if(x >=9) + if(x >=20) return FULLUPDATE; if(x) { sprintf(STR_new_ballots, "%s%d", STR_bv_ballots,x); @@ -1002,7 +1002,7 @@ static int user_vote(char *bname) { fclose(xfp); } - for(i = 1; i < 9; i++) { + for(i = 1; i < 20; i++) { sprintf(STR_new_control, "%s%d", STR_bv_control, i); sprintf(STR_new_title, "%s%d", STR_bv_title, i); setbfile(buf, bname, STR_new_control); |