diff options
author | Ulrich Drepper <drepper@redhat.com> | 1996-10-02 01:40:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1996-10-02 01:40:17 +0000 |
commit | a68b0d31a37a86785b3dbeeee3fad96ee71fadcd (patch) | |
tree | 61537b1f028002a9e6e0f5354fced6128bda8b9c /resolv/getnetnamadr.c | |
parent | 2d07133b507b13d4a5ed6dc250f4345c8a26942a (diff) | |
download | glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.tar.gz glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.tar.xz glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.zip |
update from main archive 961001
Diffstat (limited to 'resolv/getnetnamadr.c')
-rw-r--r-- | resolv/getnetnamadr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resolv/getnetnamadr.c b/resolv/getnetnamadr.c index 8e503dae12..6f5bf008c7 100644 --- a/resolv/getnetnamadr.c +++ b/resolv/getnetnamadr.c @@ -127,9 +127,9 @@ static char *net_aliases[MAXALIASES], netbuf[BUFSIZ+1]; cp = answer->buf + HFIXEDSZ; if (!qdcount) { if (hp->aa) - h_errno = HOST_NOT_FOUND; + __set_h_errno (HOST_NOT_FOUND); else - h_errno = TRY_AGAIN; + __set_h_errno (TRY_AGAIN); return (NULL); } while (qdcount-- > 0) @@ -197,7 +197,7 @@ static char *net_aliases[MAXALIASES], netbuf[BUFSIZ+1]; net_entry.n_aliases++; return (&net_entry); } - h_errno = TRY_AGAIN; + __set_h_errno (TRY_AGAIN); return (NULL); } @@ -267,7 +267,7 @@ getnetbyname(net) struct netent *net_entry; if ((_res.options & RES_INIT) == 0 && res_init() == -1) { - h_errno = NETDB_INTERNAL; + __set_h_errno (NETDB_INTERNAL); return (NULL); } strcpy(&qbuf[0], net); |