mirror of git://sourceware.org/git/glibc.git
(gaih_inet): Little code cleanup. Move variable h into gethosts macro.
This commit is contained in:
parent
415b043df9
commit
a4fdd4b8b8
|
|
@ -286,6 +286,7 @@ gaih_inet_serv (const char *servicename, const struct gaih_typeproto *tp,
|
||||||
int i; \
|
int i; \
|
||||||
int herrno; \
|
int herrno; \
|
||||||
struct hostent th; \
|
struct hostent th; \
|
||||||
|
struct hostent *h; \
|
||||||
no_data = 0; \
|
no_data = 0; \
|
||||||
while (1) { \
|
while (1) { \
|
||||||
rc = 0; \
|
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)
|
if (at->family == AF_UNSPEC && (req->ai_flags & AI_NUMERICHOST) == 0)
|
||||||
{
|
{
|
||||||
struct hostent *h = NULL;
|
|
||||||
struct gaih_addrtuple **pat = &at;
|
struct gaih_addrtuple **pat = &at;
|
||||||
int no_data = 0;
|
int no_data = 0;
|
||||||
int no_inet6_data = 0;
|
int no_inet6_data = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue