summaryrefslogtreecommitdiff
path: root/inet/getnameinfo.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-27 02:27:46 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-27 02:27:46 +0000
commitccd4b479dcec23c8b260ebf1de3df67014c778ce (patch)
tree848eaa036f9fc55acf2144cc3c01f57c51806f99 /inet/getnameinfo.c
parent12b64309cfa2289e57d439ec9f2d645c59f7bcf1 (diff)
downloadglibc-ccd4b479dcec23c8b260ebf1de3df67014c778ce.tar.gz
Update.
* conform/conformtest.pl: Implement optional-type. * resolv/netdb.h: Include <netinet/in.h> not <sys/socket.h>. Include <rpc/netdb.h> only if __USE_MISC. Include <stdint.h> instead of defining uint32_t here. Define IPPORT_RESERVED. (struct hostent): Type of h_length element is int. (getnameinfo): Type of flags parameter is unsigned int. * inet/getnameinfo.c (getnameinfo): flags argument is unsigned. * conform/data/netdb.h-data: Add many missing definitions.
Diffstat (limited to 'inet/getnameinfo.c')
-rw-r--r--inet/getnameinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index 9d37786441..c83f2cc66f 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -166,7 +166,8 @@ nrl_domainname (void)
int
getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
- socklen_t hostlen, char *serv, socklen_t servlen, int flags)
+ socklen_t hostlen, char *serv, socklen_t servlen,
+ unsigned int flags)
{
int serrno = errno;
int tmpbuflen = 1024;