]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb_map: eliminate "discards qualifyer" warning (const).
authorMichael Adam <obnox@samba.org>
Fri, 27 Jun 2008 07:22:53 +0000 (09:22 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Jul 2008 14:00:31 +0000 (16:00 +0200)
Michael

source/lib/ldb/ldb_map/ldb_map_outbound.c

index 86661a232c8beb2d83be67596f9dd552faf87208..fbc097f31362ad0f3915f241c337562abd7da5b8 100644 (file)
@@ -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 */