git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48dccbf
)
s4:libcli/resolve/dns_ex.c - fix "const" warning
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Tue, 28 Sep 2010 10:33:40 +0000
(12:33 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sun, 3 Oct 2010 10:05:13 +0000
(12:05 +0200)
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 711eb0abf182adcb62f5f24e35b5e9ed5cd24f88..35e2ad74c31cc4113d07c3e4acdc4989d66be6b4 100644
(file)
--- a/
source4/libcli/resolve/dns_ex.c
+++ b/
source4/libcli/resolve/dns_ex.c
@@
-97,7
+97,8
@@
static void run_child_dns_lookup(struct dns_ex_state *state, int fd)
name doesn't end in a '.'. We need to prevent the
DNS library trying the search domains configured in
resolv.conf */
- state->name.name = talloc_strdup_append(state->name.name, ".");
+ state->name.name = talloc_strdup_append(discard_const_p(char, state->name.name),
+ ".");
}
/* this is the blocking call we are going to lots of trouble