From: Michael Adam Date: Fri, 27 Jun 2008 07:22:53 +0000 (+0200) Subject: ldb_map: eliminate "discards qualifyer" warning (const). X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7c14af3790bcf825367a7f16d2aaa375b04393c;p=thirdparty%2Fsamba.git ldb_map: eliminate "discards qualifyer" warning (const). Michael --- diff --git a/source/lib/ldb/ldb_map/ldb_map_outbound.c b/source/lib/ldb/ldb_map/ldb_map_outbound.c index 86661a232c8..fbc097f3136 100644 --- a/source/lib/ldb/ldb_map/ldb_map_outbound.c +++ b/source/lib/ldb/ldb_map/ldb_map_outbound.c @@ -195,7 +195,7 @@ static int ldb_msg_replace(struct ldb_message *msg, const struct ldb_message_ele if (ldb_msg_add_empty(msg, el->name, 0, &old) != 0) { return -1; } - talloc_free(old->name); + talloc_free(discard_const_p(char, old->name)); } /* copy new element */