netdb.h: fix prototype of gethostbyaddr()
first parameter should be const void*, in line with freebsd and linux etc. https://xref.landonf.org/source/xref/freebsd-current/include/netdb.h#232 Change-Id: I5e953e8e7e49a6f09cd1143de6ca57eb98f77d73 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3147 Reviewed-by: Michael Lotz <[email protected]>
This commit is contained in:
@@ -195,7 +195,7 @@ void endnetent(void);
|
||||
void endprotoent(void);
|
||||
void endservent(void);
|
||||
void freehostent(struct hostent *host);
|
||||
struct hostent *gethostbyaddr(const char *address, socklen_t length, int type);
|
||||
struct hostent *gethostbyaddr(const void *address, socklen_t length, int type);
|
||||
struct hostent *gethostbyname(const char *name);
|
||||
struct hostent *gethostbyname2(const char *name, int type);
|
||||
struct hostent *gethostent(void);
|
||||
|
||||
Reference in New Issue
Block a user