From d217bd00a18787fa56ea571d67e3bd5afb9244d6 Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Tue, 30 Dec 2008 14:40:33 -0800 Subject: [PATCH] s4: simplify some overly-complicated logic --- source4/libcli/resolve/dns_ex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c index be93538c7d73..2970681d5960 100644 --- a/source4/libcli/resolve/dns_ex.c +++ b/source4/libcli/resolve/dns_ex.c @@ -278,7 +278,7 @@ static void run_child_getaddrinfo(struct dns_ex_state *state, int fd) hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV; ret = getaddrinfo(state->name.name, "0", &hints, &res_list); -#if defined(EAI_NODATA) && (EAI_NODATA != EAI_NONAME) +#ifdef EAI_NODATA if (ret == EAI_NODATA && state->do_fallback) { #else if (ret == EAI_NONAME && state->do_fallback) { -- 2.34.1