summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_init.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/res_init.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/res_init.c')
-rw-r--r--lib/libc/net/res_init.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libc/net/res_init.c b/lib/libc/net/res_init.c
index e32f8d3..1b1613f 100644
--- a/lib/libc/net/res_init.c
+++ b/lib/libc/net/res_init.c
@@ -53,7 +53,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93";
-static char rcsid[] = "$Id: res_init.c,v 4.9.1.12 1994/06/11 22:05:04 vixie Exp $";
+static char rcsid[] = "$Id: res_init.c,v 1.2 1994/09/25 02:12:36 pst Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -341,7 +341,6 @@ res_init()
dots--;
}
*pp = NULL;
-#ifdef DEBUG
if (_res.options & RES_DEBUG) {
printf(";; res_init()... default dnsrch list:\n");
for (pp = _res.dnsrch; *pp; pp++) {
@@ -349,7 +348,6 @@ res_init()
}
printf(";;\t..END..\n");
}
-#endif /*DEBUG*/
#endif /*!RFC1535*/
}
@@ -368,12 +366,10 @@ res_setoptions(options, source)
char *cp = options;
int i;
-#ifdef DEBUG
if (_res.options & RES_DEBUG) {
printf(";; res_setoptions(\"%s\", \"%s\")...\n",
options, source);
}
-#endif
while (*cp) {
/* skip leading and inner runs of spaces */
while (*cp == ' ' || *cp == '\t')
@@ -385,20 +381,16 @@ res_setoptions(options, source)
_res.ndots = i;
else
_res.ndots = RES_MAXNDOTS;
-#ifdef DEBUG
if (_res.options & RES_DEBUG) {
printf(";;\tndots=%d\n", _res.ndots);
}
-#endif
} else if (!strncmp(cp, "debug", sizeof("debug")-1)) {
-#ifdef DEBUG
if (!(_res.options & RES_DEBUG)) {
printf(";; res_setoptions(\"%s\", \"%s\")..\n",
options, source);
_res.options |= RES_DEBUG;
}
printf(";;\tdebug\n");
-#endif
} else {
/* XXX - print a warning here? */
}
OpenPOWER on IntegriCloud