summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/res_query.c')
-rw-r--r--src/lib/libc/net/res_query.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/net/res_query.c b/src/lib/libc/net/res_query.c
index 677c411a6e..4af1651cf1 100644
--- a/src/lib/libc/net/res_query.c
+++ b/src/lib/libc/net/res_query.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_query.c,v 1.22 2005/03/25 13:24:12 otto Exp $ */ 1/* $OpenBSD: res_query.c,v 1.23 2005/03/30 02:58:28 tedu Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1988, 1993 4 * ++Copyright++ 1988, 1993
@@ -56,7 +56,7 @@
56static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; 56static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93";
57static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; 57static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $";
58#else 58#else
59static char rcsid[] = "$OpenBSD: res_query.c,v 1.22 2005/03/25 13:24:12 otto Exp $"; 59static char rcsid[] = "$OpenBSD: res_query.c,v 1.23 2005/03/30 02:58:28 tedu Exp $";
60#endif 60#endif
61#endif /* LIBC_SCCS and not lint */ 61#endif /* LIBC_SCCS and not lint */
62 62
@@ -111,7 +111,7 @@ res_query(const char *name,
111 111
112 hp->rcode = NOERROR; /* default */ 112 hp->rcode = NOERROR; /* default */
113 113
114 if ((_resp->options & RES_INIT) == 0 && res_init() == -1) { 114 if (_res_init(0) == -1) {
115 h_errno = NETDB_INTERNAL; 115 h_errno = NETDB_INTERNAL;
116 return (-1); 116 return (-1);
117 } 117 }
@@ -193,7 +193,7 @@ res_search(const char *name,
193 int trailing_dot, ret, saved_herrno; 193 int trailing_dot, ret, saved_herrno;
194 int got_nodata = 0, got_servfail = 0, tried_as_is = 0; 194 int got_nodata = 0, got_servfail = 0, tried_as_is = 0;
195 195
196 if ((_resp->options & RES_INIT) == 0 && res_init() == -1) { 196 if (_res_init(0) == -1) {
197 h_errno = NETDB_INTERNAL; 197 h_errno = NETDB_INTERNAL;
198 return (-1); 198 return (-1);
199 } 199 }
@@ -332,7 +332,7 @@ res_querydomain(const char *name,
332 const char *longname = nbuf; 332 const char *longname = nbuf;
333 int n; 333 int n;
334 334
335 if ((_resp->options & RES_INIT) == 0 && res_init() == -1) { 335 if (_res_init(0) == -1) {
336 h_errno = NETDB_INTERNAL; 336 h_errno = NETDB_INTERNAL;
337 return (-1); 337 return (-1);
338 } 338 }