getaddrinfo: remove dead code

This commit is contained in:
Pavel Simerda 2013-12-02 20:17:17 +05:30 committed by Siddhesh Poyarekar
parent df3aedaf38
commit f524d6a8e4
2 changed files with 5 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2013-12-02 Pavel Simerda <psimerda@redhat.com>
* sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
(struct gaih): Remove definition.
2013-12-02 Siddhesh Poyarekar <siddhesh@redhat.com>
* nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):

View File

@ -74,10 +74,6 @@ extern int __idna_to_unicode_lzlz (const char *input, char **output,
#define GAIH_OKIFUNSPEC 0x0100
#define GAIH_EAI ~(GAIH_OKIFUNSPEC)
#ifndef UNIX_PATH_MAX
# define UNIX_PATH_MAX 108
#endif
struct gaih_service
{
const char *name;
@ -127,14 +123,6 @@ static const struct gaih_typeproto gaih_inet_typeproto[] =
{ 0, 0, 0, false, "" }
};
struct gaih
{
int family;
int (*gaih)(const char *name, const struct gaih_service *service,
const struct addrinfo *req, struct addrinfo **pai,
unsigned int *naddrs);
};
static const struct addrinfo default_hints =
{
.ai_flags = AI_DEFAULT,