Commit 67465bca authored by Dom Sekotill's avatar Dom Sekotill
Browse files

reduced complexity of using _print_ns

So that `_print_ns(...);` does not have to be wrapped in `#ifdef`
statements it is now defined as an empty macro when the `DEBUG` macro is
not defined; equivalent to:

```
 #ifndef DEBUG
 #define _print_ns(X)
 #endif
```
parent 92261f1b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -67,6 +67,8 @@ _print_ns(res_state res)
	if (strcmp("-", logfile) == 1)
		fclose(log);
}
#else
#define _print_ns(X)
#endif

int
@@ -100,9 +102,7 @@ __res_maybe_init(res_state res, int preinit)
	if (!res->nscount)
		res->nscount = count;

#	ifdef DEBUG
	_print_ns(res);
#	endif

	return ret;
}