diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-02 08:26:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-02 08:26:29 +0000 |
commit | e10b8512ce40cfb9f706e40edc7ed0ebdd151471 (patch) | |
tree | e3ae1af17d9d5ac7c895a7066a96ca07ee371fe9 | |
parent | 750f9af6199e4a76e04c819b25dfcb58cf779b60 (diff) | |
download | glibc-e10b8512ce40cfb9f706e40edc7ed0ebdd151471.tar.gz glibc-e10b8512ce40cfb9f706e40edc7ed0ebdd151471.tar.xz glibc-e10b8512ce40cfb9f706e40edc7ed0ebdd151471.zip |
Update.
2000-04-02 Ulrich Drepper <drepper@redhat.com> * resolv/netdb.h (getnameinfo): All lenght parameters are of type socklen_t. * inet/getnameinfo.c: Likewise.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | inet/getnameinfo.c | 2 | ||||
-rw-r--r-- | resolv/netdb.h | 4 |
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 */ |