summaryrefslogtreecommitdiff
path: root/inet/getnameinfo.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-05-01 21:36:43 -0400
committerUlrich Drepper <drepper@gmail.com>2011-05-01 21:36:43 -0400
commite4ecafe004b3d4270b3a9dace8f970047400ed38 (patch)
tree04be7cc5057d84b2b89a6acda3b859bb87fee2b5 /inet/getnameinfo.c
parent125ee683b3bfcd3868ffc29d5ee303433383312d (diff)
downloadglibc-e4ecafe004b3d4270b3a9dace8f970047400ed38.tar.gz
Fix getnameinfo flags parameter type.
Diffstat (limited to 'inet/getnameinfo.c')
-rw-r--r--inet/getnameinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index db6b5c7eee..6fb6ad6e1d 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -159,7 +159,7 @@ nrl_domainname (void)
int
getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
socklen_t hostlen, char *serv, socklen_t servlen,
- unsigned int flags)
+ int flags)
{
int serrno = errno;
int tmpbuflen = 1024;
@@ -385,7 +385,7 @@ getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
break;
default:
- return EAI_FAMILY;
+ return EAI_FAMILY;
}
if (serv && (servlen > 0))