summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-09 17:26:43 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-09 17:26:43 +0800
commit2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4 (patch)
tree1caffb1dd724a5205d1c47e8858a393bbe5c217f
parentb6eef5402fcae504b757aef24824d33f2fed561a (diff)
downloadpttbbs-2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4.tar
pttbbs-2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4.tar.gz
pttbbs-2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4.tar.bz2
pttbbs-2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4.tar.lz
pttbbs-2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4.tar.xz
pttbbs-2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4.tar.zst
pttbbs-2743aa3f2140fa84e9c8bf08f84d62dbc5b406d4.zip
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1520 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/proto.h4
-rw-r--r--mbbsd/bbs.c2
-rw-r--r--mbbsd/kaede.c2
-rw-r--r--mbbsd/mbbsd.c4
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);