diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-02 16:23:19 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-02 16:23:19 +0800 |
commit | eb86d8ff553917f392c556ef3a4b846910b1a17a (patch) | |
tree | 31c589739ddd4ecd6f144790dafb6fea654685e6 /mbbsd/user.c | |
parent | 09d73f6f75cb15e6882403ef143705da4fee64bf (diff) | |
download | pttbbs-eb86d8ff553917f392c556ef3a4b846910b1a17a.tar pttbbs-eb86d8ff553917f392c556ef3a4b846910b1a17a.tar.gz pttbbs-eb86d8ff553917f392c556ef3a4b846910b1a17a.tar.bz2 pttbbs-eb86d8ff553917f392c556ef3a4b846910b1a17a.tar.lz pttbbs-eb86d8ff553917f392c556ef3a4b846910b1a17a.tar.xz pttbbs-eb86d8ff553917f392c556ef3a4b846910b1a17a.tar.zst pttbbs-eb86d8ff553917f392c556ef3a4b846910b1a17a.zip |
Fix warning, including:
Prototype differance of crypt() on linux.
Adding _ISOC99_SOURCE to get declaration of snprintf() on linux.
Including strings.h to get declaration of strcasecmp() on linux.
Using mkstemp() instead of tempnam().
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1679 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 98b6fac7..eb71a4ea 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,7 @@ /* $Id$ */ +#define _XOPEN_SOURCE +#define _ISOC99_SOURCE + #include "bbs.h" static char *sex[8] = { @@ -1436,7 +1439,7 @@ u_register(void) /* 列出所有註冊使用者 */ static int usercounter, totalusers; -static ushort u_list_special; +static unsigned short u_list_special; static int u_list_CB(int num, userec_t * uentp) |