summaryrefslogtreecommitdiffstats
path: root/mbbsd/vote.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-04 21:08:35 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-04 21:08:35 +0800
commit9e81baf8352b3d525c9a1459f28dae6b540988e3 (patch)
treea558e73187b9d45b59280a79c927e7f8bb315623 /mbbsd/vote.c
parente42291049072cfee02408394850b33b3580dbd83 (diff)
downloadpttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.gz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.bz2
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.lz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.xz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.zst
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.zip
global variable move to var.c
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@280 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r--mbbsd/vote.c32
1 files changed, 3 insertions, 29 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index f25a6a2b..914ac24a 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -1,33 +1,7 @@
-/* $Id: vote.c,v 1.8 2002/05/25 09:33:22 ptt Exp $ */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <fcntl.h>
-#include <time.h>
-#include <unistd.h>
-#include <ctype.h>
-#include <sys/file.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "modes.h"
-#include "common.h"
-#include "perm.h"
-#include "proto.h"
+/* $Id: vote.c,v 1.9 2002/06/04 13:08:34 in2 Exp $ */
+#include "bbs.h"
static int total;
-extern int numboards;
-extern boardheader_t *bcache; /* Thor: for speed up */
-extern char *err_board_update;
-extern char *fn_board;
-extern char *msg_seperator;
-extern int t_lines, t_columns; /* Screen size / width */
-extern int b_lines; /* Screen bottom line number: t_lines-1 */
-extern int currmode;
-extern int usernum;
-extern char currboard[]; /* name of currently selected board */
-extern userec_t cuser;
static char STR_bv_control[] = "control"; /* 投票日期 選項 */
static char STR_bv_desc[] = "desc"; /* 投票目的 */
@@ -122,7 +96,7 @@ static int b_nonzeroNum(char *buf) {
}
return i;
}
-extern time_t now;
+
static void vote_report(char *bname, char *fname, char *fpath) {
register char *ip;
time_t dtime;