about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--inet/getnameinfo.c2
-rw-r--r--resolv/netdb.h4
3 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 592d70df46..4a20ccc7a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-04-02  Ulrich Drepper  <drepper@redhat.com>
+
+	* resolv/netdb.h (getnameinfo): All lenght parameters are of type
+	socklen_t.
+	* inet/getnameinfo.c: Likewise.
+
 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
 
 	* posix/unistd.h (socklen_t): Define if it has not yet happened.
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index 9f5d761f1a..2a6e01f505 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -166,7 +166,7 @@ nrl_domainname (void)
 
 int
 getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
-	     size_t hostlen, char *serv, size_t servlen, int flags)
+	     socklen_t hostlen, char *serv, socklen_t servlen, int flags)
 {
   int serrno = errno;
   int tmpbuflen = 1024;
diff --git a/resolv/netdb.h b/resolv/netdb.h
index 1f96351e36..70f507411a 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -479,8 +479,8 @@ extern char *gai_strerror (int __ecode) __THROW;
 /* Translate a socket address to a location and service name.  */
 extern int getnameinfo (__const struct sockaddr *__restrict __sa,
 			socklen_t __salen, char *__restrict __host,
-			size_t __hostlen, char *__restrict __serv,
-			size_t __servlen, int __flags) __THROW;
+			socklen_t __hostlen, char *__restrict __serv,
+			socklen_t __servlen, int __flags) __THROW;
 
 #endif	/* POSIX */