summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/io.c2
-rw-r--r--mbbsd/stuff.c2
-rw-r--r--mbbsd/user.c8
3 files changed, 7 insertions, 5 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 21a8045b..78adddda 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -199,7 +199,7 @@ static int water_which_flag = 0;
int
igetch()
{
- register int ch, mode =0, last;
+ register int ch, mode = 0, last = 0;
while ((ch = dogetch())) {
if (mode == 0 && ch == KEY_ESC) // here is state machine for 2 bytes key
mode = 1;
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index cde95cb0..4e5fa46c 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -410,7 +410,7 @@ vmsg_lines(const int lines, const char msg[])
clrtoeol();
if (msg)
- outs(msg);
+ outs((char *)msg);
else
outs("\033[46;1m \033[37m"
"\033[200m\033[1431m\033[506m□ 請按 \033[33m(Space/Return)\033[37m 繼續 □\033[201m (^T) 收到暫存檔 \033[m");
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 103bd2d7..f6681cc2 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1061,6 +1061,7 @@ toregister(char *email, char *genbuf, char *phone, char *career,
}
}
+#ifndef FOREIGN_REG
static int HaveRejectStr(char *s, char **rej)
{
int i;
@@ -1088,6 +1089,7 @@ static int HaveRejectStr(char *s, char **rej)
}
return 0;
}
+#endif
static char *isvalidname(char *rname)
{
@@ -1368,11 +1370,11 @@ u_register(void)
getfield(11, "含\033[1;33m縣市\033[m及門寢號碼"
"(台北請加\033[1;33m行政區\033[m)",
"目前住址", addr, 50);
- if( (errcode = isvalidaddr(addr)
+ if( (errcode = isvalidaddr(addr)) == NULL
#ifdef FOREIGN_REG
- && fore[0] ==0
+ && fore[0] == 0
#endif
- ) == NULL )
+ )
break;
else
vmsg(errcode);