From 9e06ca5a4be61cbf6befc7ec88cfedcc9fc78d41 Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 8 Jun 2005 18:32:32 +0000 Subject: [PATCH] Make gethostbyaddr() prototype match POSIX. This means len is now unsigned but there is no ABI change. OK deraadt@ --- src/include/netdb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/netdb.h b/src/include/netdb.h index 96c4afeb..d8b4261c 100644 --- a/src/include/netdb.h +++ b/src/include/netdb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netdb.h,v 1.23 2004/12/20 22:35:32 millert Exp $ */ +/* $OpenBSD: netdb.h,v 1.24 2005/06/08 18:32:32 millert Exp $ */ /* * ++Copyright++ 1980, 1983, 1988, 1993 @@ -265,7 +265,7 @@ void endservent(void); #ifndef POSIX_SOURCE void endservent_r(struct servent_data *); #endif -struct hostent *gethostbyaddr(const char *, int, int); +struct hostent *gethostbyaddr(const void *, socklen_t, int); struct hostent *gethostbyname(const char *); struct hostent *gethostbyname2(const char *, int); struct hostent *gethostent(void);