summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-04 00:50:26 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-04 00:50:26 +0800
commita8b0ad07d3a241a9db85dd38c3a1d64811d72e56 (patch)
tree930816fd20d7590b34786290cc92b3164c5a6129 /mbbsd
parentc887ad307c98ffca2825f9489b10eb442b1a6273 (diff)
downloadpttbbs-a8b0ad07d3a241a9db85dd38c3a1d64811d72e56.tar
pttbbs-a8b0ad07d3a241a9db85dd38c3a1d64811d72e56.tar.gz
pttbbs-a8b0ad07d3a241a9db85dd38c3a1d64811d72e56.tar.bz2
pttbbs-a8b0ad07d3a241a9db85dd38c3a1d64811d72e56.tar.lz
pttbbs-a8b0ad07d3a241a9db85dd38c3a1d64811d72e56.tar.xz
pttbbs-a8b0ad07d3a241a9db85dd38c3a1d64811d72e56.tar.zst
pttbbs-a8b0ad07d3a241a9db85dd38c3a1d64811d72e56.zip
- code refine: remove warnings and conditional compile
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3623 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/convert.c2
-rw-r--r--mbbsd/kaede.c1
-rw-r--r--mbbsd/user.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/convert.c b/mbbsd/convert.c
index c1e18869..acb61c03 100644
--- a/mbbsd/convert.c
+++ b/mbbsd/convert.c
@@ -94,6 +94,7 @@ norm_input(void *buf, ssize_t icount)
read_write_type write_type = (read_write_type)write;
read_write_type read_type = read;
convert_type input_type = norm_input;
+int bbs_convert_type = CONV_NORMAL;
void set_converting_type(int which)
{
@@ -113,6 +114,7 @@ void set_converting_type(int which)
write_type = utf8_write;
input_type = utf8_input;
}
+ bbs_convert_type = which;
}
#endif
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index 6dd3f95c..c4a9768b 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -83,7 +83,6 @@ Ptt_prints(char *str, size_t size, int mode)
int
Rename(const char *src, const char *dst)
{
- char buf[256];
if (rename(src, dst) == 0)
return 0;
if (!strchr(src, ';') && !strchr(dst, ';'))
diff --git a/mbbsd/user.c b/mbbsd/user.c
index ed15a4e5..7fcfb6c6 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -326,7 +326,9 @@ void Customize(void)
/* cuser.uflag settings */
static const unsigned int masks1[] = {
MOVIE_FLAG,
+#ifdef DBCSAWARE
DBCSAWARE_FLAG,
+#endif
0,
};