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:
rofl0r
2020-08-17 00:08:02 +00:00
committed by Michael Lotz
parent c367ace2ae
commit 7de1ebe0d6
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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);