diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-16 04:00:22 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-16 04:00:22 +0800 |
commit | d10177be1eb9a86b468387498fe81e979e1638cb (patch) | |
tree | 9259b7fdf8b44b9de200ce4c3293b0ec1589566e | |
parent | 92d9627bb03259894236d22f3eaebd3a487a536a (diff) | |
download | pttbbs-d10177be1eb9a86b468387498fe81e979e1638cb.tar pttbbs-d10177be1eb9a86b468387498fe81e979e1638cb.tar.gz pttbbs-d10177be1eb9a86b468387498fe81e979e1638cb.tar.bz2 pttbbs-d10177be1eb9a86b468387498fe81e979e1638cb.tar.lz pttbbs-d10177be1eb9a86b468387498fe81e979e1638cb.tar.xz pttbbs-d10177be1eb9a86b468387498fe81e979e1638cb.tar.zst pttbbs-d10177be1eb9a86b468387498fe81e979e1638cb.zip |
no warning
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@112 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/announce.c | 4 | ||||
-rw-r--r-- | mbbsd/board.c | 4 | ||||
-rw-r--r-- | mbbsd/cache.c | 4 | ||||
-rw-r--r-- | mbbsd/mbbsd.c | 6 | ||||
-rw-r--r-- | mbbsd/record.c | 4 | ||||
-rw-r--r-- | mbbsd/term.c | 5 |
6 files changed, 19 insertions, 8 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 314b3a41..280306dc 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -1,4 +1,4 @@ -/* $Id: announce.c,v 1.3 2002/04/12 18:21:13 ptt Exp $ */ +/* $Id: announce.c,v 1.4 2002/04/15 20:00:22 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1237,6 +1237,7 @@ static void a_showname(menu_t *pm) { pressanykey(); } +#if 0 static char *a_title; static void atitle() { @@ -1245,6 +1246,7 @@ static void atitle() { "[TAB]文摘 [h]elp\n\033[7m 編號 日 期 作 者 " "文 章 標 題\033[m"); } +#endif extern char currtitle[]; diff --git a/mbbsd/board.c b/mbbsd/board.c index f28721da..e97d6e3f 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.3 2002/03/16 15:37:22 ptt Exp $ */ +/* $Id: board.c,v 1.4 2002/04/15 20:00:22 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -332,6 +332,7 @@ extern char currauthor[]; extern int b_lines; extern char currowner[]; +#if 0 static int have_author(char* brdname) { char dirname[100]; @@ -347,6 +348,7 @@ static int have_author(char* brdname) { return search_rec(dirname, cmpfowner); } +#endif static int check_newpost(boardstat_t *ptr) { /* Ptt 改 */ int tbrc_list[BRC_MAXNUM], tbrc_num; diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 7f8845c9..b7f58866 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -1,4 +1,4 @@ -/* $Id: cache.c,v 1.13 2002/04/15 19:56:53 in2 Exp $ */ +/* $Id: cache.c,v 1.14 2002/04/15 20:00:22 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1046,7 +1046,7 @@ int updatemdcache(const char *CPATH, const char *fpath) if( CPATH == NULL ) cachepath(cpath = buf, fpath); else - cpath = CPATH; + cpath = (char *)CPATH; if( (sourcefd = open(fpath, O_RDONLY)) < 0 ) return -1; if( (targetfd = open(cpath, O_RDWR | O_CREAT, 0600)) < 0 ) diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 3a63321a..3f2b68e7 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.20 2002/04/15 18:10:27 ptt Exp $ */ +/* $Id: mbbsd.c,v 1.21 2002/04/15 20:00:22 in2 Exp $ */ #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -42,7 +42,9 @@ extern int curr_idle_timeout; static void do_aloha (char *hello); +#if 0 static jmp_buf byebye; +#endif int talkrequest = NA; @@ -1090,12 +1092,14 @@ telnet_init () #define RFC931_PORT 113 /* Semi-well-known port */ #define ANY_PORT 0 /* Any old port will do */ +#if 0 /* timeout - handle timeouts */ static void timeout (int sig) { longjmp (byebye, sig); } +#endif static void getremotename (struct sockaddr_in *from, char *rhost, char *rname) diff --git a/mbbsd/record.c b/mbbsd/record.c index 321132f3..b572b7cf 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -1,4 +1,4 @@ -/* $Id: record.c,v 1.2 2002/03/09 17:27:57 in2 Exp $ */ +/* $Id: record.c,v 1.3 2002/04/15 20:00:22 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <errno.h> @@ -192,6 +192,7 @@ int delete_record(char fpath[], int size, int id) { return 0; } +#if 0 static char *title_body(char *title) { if(!strncasecmp(title, str_reply, 3)) { title += 3; @@ -200,6 +201,7 @@ static char *title_body(char *title) { } return title; } +#endif int delete_range(char *fpath, int id1, int id2) { fileheader_t fhdr; diff --git a/mbbsd/term.c b/mbbsd/term.c index 61a0128d..db3e66d1 100644 --- a/mbbsd/term.c +++ b/mbbsd/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.1 2002/03/07 15:13:48 in2 Exp $ */ +/* $Id: term.c,v 1.2 2002/04/15 20:00:22 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <termios.h> @@ -67,10 +67,10 @@ int t_columns = 80; int automargins = 1; +#if 0 static char *outp; static int *outlp; - static int outcf(int ch) { if(*outlp < TERMCOMSIZE) { (*outlp)++; @@ -78,6 +78,7 @@ static int outcf(int ch) { } return 0; } +#endif extern screenline_t *big_picture; |