diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-10 16:23:22 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-10 16:23:22 +0800 |
commit | e2b6bacddae70d083142988bc6f19078aac26ceb (patch) | |
tree | 6aac76bdb91a6ebe2f1869fd5ef63ddcef94e896 | |
parent | 78514a94d0cab2903a4b3dce0a906bbdacf62de3 (diff) | |
download | pttbbs-e2b6bacddae70d083142988bc6f19078aac26ceb.tar pttbbs-e2b6bacddae70d083142988bc6f19078aac26ceb.tar.gz pttbbs-e2b6bacddae70d083142988bc6f19078aac26ceb.tar.bz2 pttbbs-e2b6bacddae70d083142988bc6f19078aac26ceb.tar.lz pttbbs-e2b6bacddae70d083142988bc6f19078aac26ceb.tar.xz pttbbs-e2b6bacddae70d083142988bc6f19078aac26ceb.tar.zst pttbbs-e2b6bacddae70d083142988bc6f19078aac26ceb.zip |
- fix warnings.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4290 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/register.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 61e5a1ef..3a6a138f 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -177,9 +177,9 @@ isvalidcareer(char *career) #endif if (DBCS_strcasestr(career, "學") && DBCS_strcasestr(career, "系") && - DBCS_strcasestr(career, "級") == NULL && - (DBCS_strcasestr(career, "畢") == NULL && - DBCS_strcasestr(career, "肄") == NULL)) + DBCS_strcasestr(career, "級") == 0 && + (DBCS_strcasestr(career, "畢") == 0 && + DBCS_strcasestr(career, "肄") == 0)) return "請加上年級"; return NULL; } @@ -204,13 +204,13 @@ isvalidaddr(char *addr) #endif // DBG_DISABLE_CHECK // addr[0] > 0: check if address is starting by Chinese. - if (DBCS_strcasestr(addr, "信箱") != NULL || DBCS_strcasestr(addr, "郵政") != NULL) + if (DBCS_strcasestr(addr, "信箱") != 0 || DBCS_strcasestr(addr, "郵政") != 0) return "抱歉我們不接受郵政信箱"; if (strlen_without_space(addr) < 15 || - (DBCS_strcasestr(addr, "市") == NULL && - DBCS_strcasestr(addr, "巿") == NULL && - DBCS_strcasestr(addr, "縣") == NULL && - DBCS_strcasestr(addr, "室") == NULL) || + (DBCS_strcasestr(addr, "市") == 0 && + DBCS_strcasestr(addr, "巿") == 0 && + DBCS_strcasestr(addr, "縣") == 0 && + DBCS_strcasestr(addr, "室") == 0) || strcmp(&addr[strlen(addr) - 2], "段") == 0 || strcmp(&addr[strlen(addr) - 2], "路") == 0 || strcmp(&addr[strlen(addr) - 2], "巷") == 0 || |