summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-06-27 09:22:53 +0200
committerMichael Adam <obnox@samba.org>2008-07-09 16:00:31 +0200
commit016d65ee980960d4ff9970028c3eb59bb06c210b (patch)
treee644b766b697c58cc94043853372be1196044918 /source4/lib/ldb
parent24caf1178a2438485680a6c1f27fbddb6e946b5d (diff)
downloadsamba-016d65ee980960d4ff9970028c3eb59bb06c210b.tar.gz
samba-016d65ee980960d4ff9970028c3eb59bb06c210b.tar.bz2
samba-016d65ee980960d4ff9970028c3eb59bb06c210b.zip
ldb_map: eliminate "discards qualifyer" warning (const).
Michael (This used to be commit b7c14af3790bcf825367a7f16d2aaa375b04393c)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb_map/ldb_map_outbound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_map/ldb_map_outbound.c b/source4/lib/ldb/ldb_map/ldb_map_outbound.c
index 86661a232c..fbc097f313 100644
--- a/source4/lib/ldb/ldb_map/ldb_map_outbound.c
+++ b/source4/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 */