From 2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4 Mon Sep 17 00:00:00 2001 From: in2 Date: Mon, 9 Feb 2004 09:26:43 +0000 Subject: warning free git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1520 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 4 ---- mbbsd/bbs.c | 2 +- mbbsd/kaede.c | 2 -- mbbsd/mbbsd.c | 4 ++++ 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/proto.h b/include/proto.h index ba5c8b0c..1da8c481 100644 --- a/include/proto.h +++ b/include/proto.h @@ -278,10 +278,6 @@ int x_dict(); int use_dict(char *dict,char *database); /* convert */ -int gb_write(int fd, void *buf, size_t count); -int gb_read(int fd, void *buf, size_t count); -int utf8_write(int fd, void *buf, size_t count); -int utf8_read(int fd, void *buf, size_t count); void set_converting_type(int which); /* io */ diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 402c6f06..6bfe9962 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -449,7 +449,7 @@ do_crosspost(char *brd, fileheader_t *postfile, const char *fpath) strcpy(fh.date, postfile->date); sprintf(fh.title,"%-*.*s.%sĒŠ", len, len, postfile->title, currboard); unlink(genbuf); - Link(fpath, genbuf); + Link((char *)fpath, genbuf); postfile->filemode = FILE_LOCAL; setbdir(genbuf, brd); if (append_record(genbuf, &fh, sizeof(fileheader_t)) != -1) { diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c index 356cc410..486e5aef 100644 --- a/mbbsd/kaede.c +++ b/mbbsd/kaede.c @@ -96,8 +96,6 @@ Copy(char *src, char *dst) int Link(char *src, char *dst) { - char cmd[200]; - if (strcmp(src, BBSHOME "/home") == 0) return 1; if (symlink(dst, src) == 0) diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 2c2d6cbf..d7e85c3f 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1370,6 +1370,10 @@ daemon_login(int argc, char *argv[], char *envp[]) /* It's better to do something before fork */ #ifdef CONVERT + void big2gb_init(void*); + void gb2big_init(void*); + void big2uni_init(void*); + void uni2big_init(void*); big2gb_init(NULL); gb2big_init(NULL); big2uni_init(NULL); -- cgit v1.2.3