summaryrefslogtreecommitdiffstats
path: root/mbbsd/cal.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/cal.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/cal.c')
-rw-r--r--mbbsd/cal.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 5d80bc47..3b41d279 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -1,26 +1,10 @@
-/* $Id: cal.c,v 1.12 2002/05/25 11:18:11 ptt Exp $ */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <time.h>
-#include <sys/types.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "common.h"
-#include "modes.h"
-#include "perm.h"
-#include "proto.h"
-
-extern struct utmpfile_t *utmpshm;
-extern int usernum;
-extern time_t now;
+/* $Id: cal.c,v 1.13 2002/06/04 13:08:33 in2 Exp $ */
+#include "bbs.h"
/* 防堵 Multi play */
static int count_multiplay(int unmode) {
register int i, j;
register userinfo_t *uentp;
- extern struct utmpfile_t *utmpshm;
for(i = j = 0; i < USHM_SIZE; i++) {
uentp = &(utmpshm->uinfo[i]);
@@ -31,9 +15,6 @@ static int count_multiplay(int unmode) {
return j;
}
-extern userinfo_t *currutmp;
-extern char *ModeTypeTable[];
-
int lockutmpmode(int unmode, int state) {
int errorno = 0;
@@ -66,9 +47,6 @@ int unlockutmpmode() {
return 0;
}
-extern userec_t cuser;
-extern userec_t xuser;
-
/* 使用錢的函數 */
#define VICE_NEW "vice.new"
@@ -96,8 +74,6 @@ int vice(int money, char* item) {
#define lockbreak(unmode, state) if(lockutmpmode(unmode, state)) break
#define SONGBOOK "etc/SONGBOOK"
#define OSONGPATH "etc/SONGO"
-extern char trans_buffer[];
-extern char save_title[];
static int osong(char *defaultid) {
char destid[IDLEN + 1],buf[200],genbuf[200],filename[256],say[51];
@@ -269,8 +245,6 @@ static int inmailbox(int m) {
}
-extern int b_lines;
-
#if !HAVE_FREECLOAK
/* 花錢選單 */
int p_cloak() {