(u_char, u_short, u_int): BSDisms. Figuring out whether sys/types.h
defines them would be possible, but isn't worth the trouble. Replace by unabbreviated types.
This commit is contained in:
parent
21bf6b41d4
commit
8054aafb9a
22 changed files with 109 additions and 113 deletions
|
@ -43,9 +43,6 @@
|
|||
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||
|
||||
#if defined(_WIN32)
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short;
|
||||
typedef unsigned int u_int;
|
||||
typedef long ssize_t;
|
||||
|
||||
/* integral mismatch, due to misuse of sector short */
|
||||
|
@ -88,7 +85,7 @@ struct mob_acc_globals {
|
|||
#define RESOLVE_IPADDRESS /* resolve ip addresses into hostnames */
|
||||
#endif
|
||||
|
||||
typedef u_char natid; /* NSC_NATID must match this */
|
||||
typedef unsigned char natid; /* NSC_NATID must match this */
|
||||
|
||||
/*
|
||||
* TODO s_char has to go. Use plain char for characters and strings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue