From 01c3cb260c49ab6741dc694e2f193edc50cbb31c Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 28 Sep 2010 12:33:40 +0200 Subject: s4:libcli/resolve/dns_ex.c - fix "const" warning --- source4/libcli/resolve/dns_ex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/libcli') 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 -- cgit