summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve/dns_ex.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-28 12:33:40 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-03 12:05:13 +0200
commit01c3cb260c49ab6741dc694e2f193edc50cbb31c (patch)
tree08eb19e91be2e947c256f882d3b62c4e7b2275bd /source4/libcli/resolve/dns_ex.c
parent48dccbf2b52163643b5bbc0d73b65e12b8c92c12 (diff)
downloadsamba-01c3cb260c49ab6741dc694e2f193edc50cbb31c.tar.gz
samba-01c3cb260c49ab6741dc694e2f193edc50cbb31c.tar.bz2
samba-01c3cb260c49ab6741dc694e2f193edc50cbb31c.zip
s4:libcli/resolve/dns_ex.c - fix "const" warning
Diffstat (limited to 'source4/libcli/resolve/dns_ex.c')
-rw-r--r--source4/libcli/resolve/dns_ex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c
index 711eb0abf1..35e2ad74c3 100644
--- 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