summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c2
-rw-r--r--mbbsd/cal.c3
-rw-r--r--mbbsd/menu.c5
-rw-r--r--mbbsd/talk.c2
4 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 7da699e0..dace435c 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -423,7 +423,9 @@ do_unanonymous_post(char *fpath)
}
#ifdef NO_WATER_POST
+#ifndef DEBUG
static time_t last_post_time = 0;
+#endif
static time_t water_counts = 0;
#endif
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 5c2b7cdc..a443291d 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -446,6 +446,7 @@ p_sysinfo(void)
}
/* 小計算機 */
+#if 0
static void
ccount(float *a, float b, int cmode)
{
@@ -466,4 +467,4 @@ ccount(float *a, float b, int cmode)
break;
}
}
-
+#endif
diff --git a/mbbsd/menu.c b/mbbsd/menu.c
index f3b43aa9..ae006299 100644
--- a/mbbsd/menu.c
+++ b/mbbsd/menu.c
@@ -32,7 +32,10 @@ void
showtitle(char *title, char *mid)
{
char buf[40], numreg[50];
- int nreg, spc = 0, pad, bid;
+#ifndef DEBUG
+ int nreg;
+#endif
+ int spc = 0, pad, bid;
static char lastboard[16] = {0};
spc = strlen(mid);
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index df570f38..f44b69b9 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -111,7 +111,7 @@ modestring(userinfo_t * uentp, int simple)
{"", "一", "兩", "三", "四", "五", "六", "七",
"八", "九"};
snprintf(modestr, sizeof(modestr),
- "中%s顆水球", cnum[uentp->msgcount]);
+ "中%s顆水球", cnum[(int)(uentp->msgcount)]);
} else
snprintf(modestr, sizeof(modestr), "不行了 @_@");
else if (!mode && *uentp->chatid == 3)