summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbydns.c
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1994-09-25 17:45:41 +0000
committerpst <pst@FreeBSD.org>1994-09-25 17:45:41 +0000
commit6f303e99351daee1b39170a6bd59677992df1da8 (patch)
tree23a51ecf700a36c90ac92373ab53f2401150839b /lib/libc/net/gethostbydns.c
parent58356f67d6bba46c965806677d8cbd9dbee2d1c5 (diff)
downloadFreeBSD-src-6f303e99351daee1b39170a6bd59677992df1da8.zip
FreeBSD-src-6f303e99351daee1b39170a6bd59677992df1da8.tar.gz
remove need for -DDEBUG from resolver code (conflict with db/hash)
Diffstat (limited to 'lib/libc/net/gethostbydns.c')
-rw-r--r--lib/libc/net/gethostbydns.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c
index 24a8733..baeceee 100644
--- a/lib/libc/net/gethostbydns.c
+++ b/lib/libc/net/gethostbydns.c
@@ -53,7 +53,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
-static char rcsid[] = "$Id: gethnamaddr.c,v 4.9.1.19 1994/07/22 08:42:54 vixie Exp $";
+static char rcsid[] = "$Id: gethostbydns.c,v 1.1 1994/09/25 02:12:05 pst Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -327,10 +327,8 @@ gethostanswer(answer, anslen, qname, qclass, qtype)
bp += sizeof(align) - ((u_long)bp % sizeof(align));
if (bp + n >= &hostbuf[sizeof hostbuf]) {
-#ifdef DEBUG
if (_res.options & RES_DEBUG)
printf("size (%d) too big\n", n);
-#endif
had_error++;
continue;
}
@@ -417,10 +415,8 @@ _gethostbydnsname(name)
}
if ((n = res_search(name, C_IN, T_A, buf.buf, sizeof(buf))) < 0) {
-#ifdef DEBUG
if (_res.options & RES_DEBUG)
printf("res_search failed\n");
-#endif
return (NULL);
}
return (gethostanswer(&buf, n, name, C_IN, T_A));
@@ -445,10 +441,8 @@ _gethostbydnsaddr(addr, len, type)
((unsigned)addr[0] & 0xff));
n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf.buf, sizeof buf.buf);
if (n < 0) {
-#ifdef DEBUG
if (_res.options & RES_DEBUG)
printf("res_query failed\n");
-#endif
return (NULL);
}
if (!(hp = gethostanswer(&buf, n, qbuf, C_IN, T_PTR)))
OpenPOWER on IntegriCloud