mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Fix getnameinfo flags parameter type.
This commit is contained in:
parent
125ee683b3
commit
e4ecafe004
@ -1,3 +1,11 @@
|
||||
2011-04-30 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
[BZ #12717]
|
||||
* conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
|
||||
* resolv/netdb.h (getnameinfo): Change type of flags parameter
|
||||
to 'int'.
|
||||
* inet/getnameinfo.c (getnameinfo): Likewise.
|
||||
|
||||
2011-04-29 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
|
||||
|
@ -89,7 +89,7 @@ function int getaddrinfo (const char*, const char*, const struct addrinfo*, stru
|
||||
function {struct hostent*} gethostbyaddr (const void*, socklen_t, int)
|
||||
function {struct hostent*} gethostbyname (const char*)
|
||||
function {struct hostent*} gethostent (void)
|
||||
function int getnameinfo (const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, unsigned)
|
||||
function int getnameinfo (const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, int)
|
||||
function {struct netent*} getnetbyaddr (uint32_t, int)
|
||||
function {struct netent*} getnetbyname (const char*)
|
||||
function {struct netent*} getnetent (void)
|
||||
|
@ -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;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1996-2004, 2009, 2010 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1996-2004, 2009, 2010, 2011 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -679,7 +679,7 @@ extern __const char *gai_strerror (int __ecode) __THROW;
|
||||
extern int getnameinfo (__const struct sockaddr *__restrict __sa,
|
||||
socklen_t __salen, char *__restrict __host,
|
||||
socklen_t __hostlen, char *__restrict __serv,
|
||||
socklen_t __servlen, unsigned int __flags);
|
||||
socklen_t __servlen, int __flags);
|
||||
#endif /* POSIX */
|
||||
|
||||
#ifdef __USE_GNU
|
||||
|
Loading…
Reference in New Issue
Block a user