summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--include/netdb.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 181d06de33..c4eee47bfa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
 	* resolv/netdb.h: Adjust parameters of gethostbyaddr and
 	gethostbyaddr_r.
+	* include/netdb.h: Likewise.
 	* inet/gethstbyad.c: Correct type of len parameter.
 	* inet/gethstbyad_r.c: Likewise.
 
diff --git a/include/netdb.h b/include/netdb.h
index 3311e45046..8fffe3cc5d 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -8,7 +8,7 @@ extern int __gethostent_r __P ((struct hostent *__restrict __result_buf,
 				int *__restrict __h_errnop));
 
 extern int __gethostbyaddr_r __P ((__const char *__restrict __addr,
-				   int __len, int __type,
+				   size_t __len, int __type,
 				   struct hostent *__restrict __result_buf,
 				   char *__restrict __buf, size_t __buflen,
 				   struct hostent **__restrict __result,