From 61d715cfa6afc5f001cecf5d19b633d2686aba98 Mon Sep 17 00:00:00 2001 From: ume Date: Thu, 14 Apr 2005 11:44:43 +0000 Subject: remove needless res_init() call. Inspired by: NetBSD --- lib/libc/net/getaddrinfo.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib') diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index cbdbcf0..b695e58 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -2310,11 +2310,6 @@ res_queryN(name, target) rcode = NOERROR; ancount = 0; - if ((_res.options & RES_INIT) == 0 && res_init() == -1) { - h_errno = NETDB_INTERNAL; - return (-1); - } - buf = malloc(MAXPACKET); if (!buf) { h_errno = NETDB_INTERNAL; @@ -2561,10 +2556,6 @@ res_querydomainN(name, domain, target) const char *longname = nbuf; size_t n, d; - if ((_res.options & RES_INIT) == 0 && res_init() == -1) { - h_errno = NETDB_INTERNAL; - return (-1); - } #ifdef DEBUG if (_res.options & RES_DEBUG) printf(";; res_querydomain(%s, %s)\n", -- cgit v1.1