aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-06 08:26:59 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-06 08:26:59 +0000
commita4fdd4b8b8d9a0bfecc50c4105014a0c357fac27 (patch)
treeae61e4848942646593af5d7b004cc3ce668260b2 /sysdeps
parent415b043df92cff69274eacd3215230729b206824 (diff)
downloadglibc-a4fdd4b8b8d9a0bfecc50c4105014a0c357fac27.zip
glibc-a4fdd4b8b8d9a0bfecc50c4105014a0c357fac27.tar.gz
glibc-a4fdd4b8b8d9a0bfecc50c4105014a0c357fac27.tar.bz2
(gaih_inet): Little code cleanup. Move variable h into gethosts macro.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/posix/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 17331e5..b936b25 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -286,6 +286,7 @@ gaih_inet_serv (const char *servicename, const struct gaih_typeproto *tp,
int i; \
int herrno; \
struct hostent th; \
+ struct hostent *h; \
no_data = 0; \
while (1) { \
rc = 0; \
@@ -578,7 +579,6 @@ gaih_inet (const char *name, const struct gaih_service *service,
if (at->family == AF_UNSPEC && (req->ai_flags & AI_NUMERICHOST) == 0)
{
- struct hostent *h = NULL;
struct gaih_addrtuple **pat = &at;
int no_data = 0;
int no_inet6_data = 0;