summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/res_debug.c')
-rw-r--r--src/lib/libc/net/res_debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/res_debug.c b/src/lib/libc/net/res_debug.c
index 02f9e4a1ea..82a067c1f0 100644
--- a/src/lib/libc/net/res_debug.c
+++ b/src/lib/libc/net/res_debug.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_debug.c,v 1.19 2005/03/25 13:24:12 otto Exp $ */ 1/* $OpenBSD: res_debug.c,v 1.20 2005/03/30 02:58:28 tedu Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1990, 1993 4 * ++Copyright++ 1985, 1990, 1993
@@ -78,7 +78,7 @@
78static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; 78static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93";
79static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; 79static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $";
80#else 80#else
81static char rcsid[] = "$OpenBSD: res_debug.c,v 1.19 2005/03/25 13:24:12 otto Exp $"; 81static char rcsid[] = "$OpenBSD: res_debug.c,v 1.20 2005/03/30 02:58:28 tedu Exp $";
82#endif 82#endif
83#endif /* LIBC_SCCS and not lint */ 83#endif /* LIBC_SCCS and not lint */
84 84
@@ -264,7 +264,7 @@ __fp_nquery(const u_char *msg, int len, FILE *file)
264 const HEADER *hp; 264 const HEADER *hp;
265 int n; 265 int n;
266 266
267 if ((_resp->options & RES_INIT) == 0 && res_init() == -1) 267 if (_res_init(0) == -1)
268 return; 268 return;
269 269
270#define TruncTest(x) if (x > endMark) goto trunc 270#define TruncTest(x) if (x > endMark) goto trunc
@@ -462,7 +462,7 @@ __p_rr(const u_char *cp, const u_char *msg, FILE *file)
462 char rrname[MAXDNAME]; /* The fqdn of this RR */ 462 char rrname[MAXDNAME]; /* The fqdn of this RR */
463 char base64_key[MAX_KEY_BASE64]; 463 char base64_key[MAX_KEY_BASE64];
464 464
465 if ((_resp->options & RES_INIT) == 0 && res_init() == -1) { 465 if (_res_init(0) == -1) {
466 h_errno = NETDB_INTERNAL; 466 h_errno = NETDB_INTERNAL;
467 return (NULL); 467 return (NULL);
468 } 468 }