mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
2004-08-19 Jakub Jelinek <jakub@redhat.com> * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *) to avoid warning. * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize status to NSS_STATUS_UNAVAIL. 2004-08-19 Ulrich Drepper <drepper@redhat.com> * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the cannoname lookup since it has the FQDN even if the original NAME value has not.
This commit is contained in:
@@ -52,7 +52,7 @@ _nss_dns_getcanonname_r (const char *name, char *buffer, size_t buflen,
|
||||
querybuf *buf;
|
||||
unsigned char *ptr;
|
||||
} ansp = { .ptr = buf };
|
||||
enum nss_status status;
|
||||
enum nss_status status = NSS_STATUS_UNAVAIL;
|
||||
int qtypes[] = { ns_t_a, ns_t_aaaa };
|
||||
#define nqtypes (sizeof (qtypes) / sizeof (qtypes[0]))
|
||||
|
||||
|
Reference in New Issue
Block a user