projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
415b043
)
(gaih_inet): Little code cleanup. Move variable h into gethosts macro.
author
Ulrich Drepper
<drepper@redhat.com>
Mon, 6 Sep 2004 08:26:59 +0000
(08:26 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Mon, 6 Sep 2004 08:26:59 +0000
(08:26 +0000)
sysdeps/posix/getaddrinfo.c
patch
|
blob
|
history
diff --git
a/sysdeps/posix/getaddrinfo.c
b/sysdeps/posix/getaddrinfo.c
index 17331e54bced8a8195ddcb5a59b53845e03bc746..b936b252fedc4dcdce3e98b97a17df5268a9a659 100644
(file)
--- 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;