diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-13 01:08:05 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-13 01:08:05 +0800 |
commit | bc9f4f0f87cfe465d0a63591513b6d4bcbd85aa5 (patch) | |
tree | 50f34642b30ea0a826dbe98d1cb04fb63397007d /mbbsd | |
parent | 7584dacd39e1bc43e766a21550d39f039aa849bc (diff) | |
download | pttbbs-bc9f4f0f87cfe465d0a63591513b6d4bcbd85aa5.tar pttbbs-bc9f4f0f87cfe465d0a63591513b6d4bcbd85aa5.tar.gz pttbbs-bc9f4f0f87cfe465d0a63591513b6d4bcbd85aa5.tar.bz2 pttbbs-bc9f4f0f87cfe465d0a63591513b6d4bcbd85aa5.tar.lz pttbbs-bc9f4f0f87cfe465d0a63591513b6d4bcbd85aa5.tar.xz pttbbs-bc9f4f0f87cfe465d0a63591513b6d4bcbd85aa5.tar.zst pttbbs-bc9f4f0f87cfe465d0a63591513b6d4bcbd85aa5.zip |
- fix warnings.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3830 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 182f8610..b2a37e2d 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -260,7 +260,7 @@ kick_all(char *user) { userinfo_t *ui; int num = searchuser(user, NULL), i=1; - while((ui = (userinfo_t *) search_ulistn(num, i))>0) + while((ui = (userinfo_t *) search_ulistn(num, i)) != NULL) { if(ui == currutmp) i++; if ((ui->pid <= 0 || kill(ui->pid, SIGHUP) == -1)) @@ -400,7 +400,7 @@ void Customize(void) /* extended stuff */ { char mindbuf[5]; - const static char *wm[] = + static const char *wm[] = {"¤@¯ë", "¶i¶¥", "¥¼¨Ó", ""}; prints("%c. %-40s%s\n", |