summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getnetbydns.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/getnetbydns.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/getnetbydns.c')
-rw-r--r--lib/libc/net/getnetbydns.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/net/getnetbydns.c b/lib/libc/net/getnetbydns.c
index 02e5088..fbfb3c7 100644
--- a/lib/libc/net/getnetbydns.c
+++ b/lib/libc/net/getnetbydns.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$";
+static char rcsid[] = "$Id: getnetbydns.c,v 1.1 1994/09/25 02:12:20 pst Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -253,10 +253,8 @@ _getnetbydnsaddr(net, net_type)
}
anslen = res_query(qbuf, C_IN, T_PTR, buf.buf, sizeof buf.buf);
if (anslen < 0) {
-#ifdef DEBUG
if (_res.options & RES_DEBUG)
printf("res_query failed\n");
-#endif
return (NULL);
}
net_entry = getnetanswer(&buf, anslen, BYADDR);
@@ -283,10 +281,8 @@ _getnetbydnsname(net)
(void)strcpy(&qbuf[0],net);
anslen = res_search(qbuf, C_IN, T_PTR, buf.buf, sizeof buf.buf);
if (anslen < 0) {
-#ifdef DEBUG
if (_res.options & RES_DEBUG)
printf("res_query failed\n");
-#endif
return NULL;
}
return getnetanswer(&buf, anslen, BYNAME);
OpenPOWER on IntegriCloud