diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-05 04:04:09 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-05 04:04:09 +0800 |
commit | 20428dc5fbb93729c442d6c226eb420829d972a7 (patch) | |
tree | 92072df3c0f3648954cdddac78084a20584ba353 /util/xchatd.h | |
parent | 920cb52f211a03479556866c712298141d368c50 (diff) | |
download | pttbbs-20428dc5fbb93729c442d6c226eb420829d972a7.tar pttbbs-20428dc5fbb93729c442d6c226eb420829d972a7.tar.gz pttbbs-20428dc5fbb93729c442d6c226eb420829d972a7.tar.bz2 pttbbs-20428dc5fbb93729c442d6c226eb420829d972a7.tar.lz pttbbs-20428dc5fbb93729c442d6c226eb420829d972a7.tar.xz pttbbs-20428dc5fbb93729c442d6c226eb420829d972a7.tar.zst pttbbs-20428dc5fbb93729c442d6c226eb420829d972a7.zip |
change function declare from k&r style to ansi style.
fix two bug detected by compiler because style change.
replace some sprintf with snprintf
replace str_ncpy with strlcpy
comment on strange code
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2461 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/xchatd.h')
-rw-r--r-- | util/xchatd.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/util/xchatd.h b/util/xchatd.h index d0a6e1e4..192b038f 100644 --- a/util/xchatd.h +++ b/util/xchatd.h @@ -1,4 +1,4 @@ -/* $Id: xchatd.h,v 1.1 2002/03/07 15:13:46 in2 Exp $ */ +/* $Id$ */ #ifndef _XCHAT_H_ #define _XCHAT_H_ @@ -69,15 +69,13 @@ #define ERR_LOGIN_PASSERROR 505 static int -Isspace (ch) - int ch; +Isspace (int ch) { return (ch == ' ' || ch == '\t' || ch == 10 || ch == 13); } static char * -nextword (str) - char **str; +nextword (char **str) { char *head, *tail; int ch; |