summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-25 17:58:02 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-25 17:58:02 +0800
commit8cb2775bb364a740a107fe74cc39d723fd63babc (patch)
treeb2b17c0b0a9952c6c8afff6277d51ee952687901 /mbbsd/user.c
parent37ca2e52ffe3986eb4cf57fb825926426a753245 (diff)
downloadpttbbs-8cb2775bb364a740a107fe74cc39d723fd63babc.tar
pttbbs-8cb2775bb364a740a107fe74cc39d723fd63babc.tar.gz
pttbbs-8cb2775bb364a740a107fe74cc39d723fd63babc.tar.bz2
pttbbs-8cb2775bb364a740a107fe74cc39d723fd63babc.tar.lz
pttbbs-8cb2775bb364a740a107fe74cc39d723fd63babc.tar.xz
pttbbs-8cb2775bb364a740a107fe74cc39d723fd63babc.tar.zst
pttbbs-8cb2775bb364a740a107fe74cc39d723fd63babc.zip
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1850 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c8
1 files changed, 5 insertions, 3 deletions
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);