about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-06-19 13:18:45 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-06-19 14:24:24 +0200
commite68111fbd63e84b66bd9e03b42721c79230b9b6d (patch)
tree3423c542379c776f9864cd86f26740a8873fc70b /resolv
parente4e5b57d23b4ebdbf773fedba91160158f95af94 (diff)
downloadglibc-e68111fbd63e84b66bd9e03b42721c79230b9b6d.tar.gz
glibc-e68111fbd63e84b66bd9e03b42721c79230b9b6d.tar.xz
glibc-e68111fbd63e84b66bd9e03b42721c79230b9b6d.zip
resolv: Remove DEBUG preprocessor conditionals from res_setoptions
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_init.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c
index eb380d3d56..eb24fca3a6 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -83,9 +83,6 @@
 #include <sys/types.h>
 #include <inet/net-internal.h>
 
-/* Options.  Should all be left alone. */
-/* #undef DEBUG */
-
 static void res_setoptions (res_state, const char *, const char *)
      internal_function;
 
@@ -383,11 +380,6 @@ res_setoptions(res_state statp, const char *options, const char *source) {
 	const char *cp = options;
 	int i;
 
-#ifdef DEBUG
-	if (statp->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')
@@ -399,10 +391,6 @@ res_setoptions(res_state statp, const char *options, const char *source) {
 				statp->ndots = i;
 			else
 				statp->ndots = RES_MAXNDOTS;
-#ifdef DEBUG
-			if (statp->options & RES_DEBUG)
-				printf(";;\tndots=%d\n", statp->ndots);
-#endif
 		} else if (!strncmp(cp, "timeout:", sizeof("timeout:") - 1)) {
 			i = atoi(cp + sizeof("timeout:") - 1);
 			if (i <= RES_MAXRETRANS)
@@ -415,15 +403,6 @@ res_setoptions(res_state statp, const char *options, const char *source) {
 				statp->retry = i;
 			else
 				statp->retry = RES_MAXRETRY;
-		} else if (!strncmp(cp, "debug", sizeof("debug") - 1)) {
-#ifdef DEBUG
-			if (!(statp->options & RES_DEBUG)) {
-				printf(";; res_setoptions(\"%s\", \"%s\")..\n",
-				       options, source);
-				statp->options |= RES_DEBUG;
-			}
-			printf(";;\tdebug\n");
-#endif
 		} else {
 		  static const struct
 		  {