summaryrefslogtreecommitdiffstats
path: root/mbbsd/announce.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/announce.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/announce.c')
-rw-r--r--mbbsd/announce.c55
1 files changed, 3 insertions, 52 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index a31dc6c2..3afdbac2 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -1,31 +1,6 @@
-/* $Id: announce.c,v 1.9 2002/05/25 11:18:11 ptt Exp $ */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <syslog.h>
-#include <netdb.h>
-#include <unistd.h>
-#include <setjmp.h>
-#include <signal.h>
-#include <time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "perm.h"
-#include "common.h"
-#include "modes.h"
-#include "proto.h"
-
-extern struct bcache_t *brdshm;
-extern int b_lines;
-extern int p_lines;
-extern int TagNum;
-extern int currbid;
-extern time_t now;
+/* $Id: announce.c,v 1.10 2002/06/04 13:08:33 in2 Exp $ */
+#include "bbs.h"
+
static void g_showmenu(gmenu_t *pm) {
static char *mytype = "½s ¿ï µ·¸ô¤§®È";
char *title, ch;
@@ -108,8 +83,6 @@ static char *nextfield(char *data, char *field) {
return data;
}
-extern char *str_author1;
-
static FILE* my_open(char* path) {
FILE* ans = 0;
char buf[80];
@@ -145,8 +118,6 @@ static void isig(int sig) {
}
#define PROXY_HOME "proxy/"
-extern userec_t cuser;
-extern userinfo_t *currutmp;
static void go_proxy(char* fpath, item_t *node, int update) {
char *ptr, *str, *server;
@@ -326,10 +297,6 @@ static void g_showhelp() {
#define PATHLEN 256
static char paste_fname[200];
-extern time_t paste_time;
-extern char paste_path[];
-extern char paste_title[];
-extern int paste_level;
static void load_paste() {
struct stat st;
@@ -521,8 +488,6 @@ static int AnnounceSelect() {
return FULLUPDATE;
}
-extern char vetitle[];
-
void gem(char* maintitle, item_t* path, int update) {
gmenu_t me;
int ch;
@@ -715,10 +680,6 @@ void gem(char* maintitle, item_t* path, int update) {
free(me.item[ch]);
}
-extern char *msg_fwd_ok;
-extern char *msg_fwd_err1;
-extern char *msg_fwd_err2;
-
static void a_forward(char *path, fileheader_t *pitem, int mode) {
fileheader_t fhdr;
@@ -758,7 +719,6 @@ static void a_additem(menu_t *pm, fileheader_t *myheader) {
#define ADDGROUP 1
#define ADDGOPHER 2
#define ADDLINK 3
-extern char currboard[];
static void a_newitem(menu_t *pm, int mode) {
static char *mesg[4] = {
@@ -999,9 +959,6 @@ static void a_appenditem(menu_t *pm, int isask) {
}
static int a_pastetagpost(menu_t *pm, int mode) {
- extern int TagNum;
- extern void EnumTagFhdr();
- extern void UnTagger(int locus);
fileheader_t fhdr;
int ans = 0, ent=0, tagnum;
char title[TTLEN + 1]= "¡º ";
@@ -1248,12 +1205,6 @@ static void atitle() {
}
#endif
-extern char currtitle[TTLEN + 1];
-
-char trans_buffer[256];
-extern char quote_file[];
-extern unsigned int currstat;
-
static int isvisible_man(menu_t *me)
{
fileheader_t *fhdr = &me->header[me->now-me->page];