git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99c68fa
)
s4: simplify some overly-complicated logic
author
Tim Prouty
<tprouty@samba.org>
Tue, 30 Dec 2008 22:40:33 +0000
(14:40 -0800)
committer
Tim Prouty
<tprouty@samba.org>
Tue, 30 Dec 2008 23:21:34 +0000
(15:21 -0800)
source4/libcli/resolve/dns_ex.c
patch
|
blob
|
history
diff --git
a/source4/libcli/resolve/dns_ex.c
b/source4/libcli/resolve/dns_ex.c
index be93538c7d73d462ceda24ed3b9fd48eb79b4101..2970681d59601ec3b0e2b9c6610cbe78cc789794 100644
(file)
--- 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)
+#if
def EAI_NODATA
if (ret == EAI_NODATA && state->do_fallback) {
#else
if (ret == EAI_NONAME && state->do_fallback) {