diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-31 19:48:20 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-31 19:48:20 -0700 |
commit | 02cfae8fdda8f6916ae12c6cda947a7aa2084014 (patch) | |
tree | 10517e7d000fdb1d498ba7d7f061bdbcee1330d3 /system | |
parent | 6b64974e385ad39f7b1f6564c431c20fc18a3fdf (diff) |
fix gethostbyname_r types
Diffstat (limited to 'system')
-rw-r--r-- | system/include/netdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/include/netdb.h b/system/include/netdb.h index fa71f58f..8860a14a 100644 --- a/system/include/netdb.h +++ b/system/include/netdb.h @@ -101,7 +101,7 @@ struct hostent struct hostent* gethostbyaddr(const void* addr, socklen_t len, int type); struct hostent* gethostbyname(const char* name); -struct hostent* gethostbyname_r(const char *name, struct hostent *ret, char *buf, size_t buflen, int *err); // XXX not quite standard, see http://linux.die.net/man/3/gethostbyname_r +struct hostent* gethostbyname_r(const char *name, struct hostent *ret, char *buf, int buflen, int *err); // XXX not quite standard, see http://linux.die.net/man/3/gethostbyname_r void sethostent(int stayopen); void endhostent(void); void herror(const char* s); |