summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2008-12-30 14:40:33 -0800
committerTim Prouty <tprouty@samba.org>2008-12-30 15:21:34 -0800
commitd217bd00a18787fa56ea571d67e3bd5afb9244d6 (patch)
tree00526c9e92d98b00205cea92f46279f314c876a1 /source4
parent99c68fa23e5911b2037165f3cf73a49abb5251ce (diff)
downloadsamba-d217bd00a18787fa56ea571d67e3bd5afb9244d6.tar.gz
samba-d217bd00a18787fa56ea571d67e3bd5afb9244d6.tar.bz2
samba-d217bd00a18787fa56ea571d67e3bd5afb9244d6.zip
s4: simplify some overly-complicated logic
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/resolve/dns_ex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c
index be93538c7d..2970681d59 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) {