On Wed, 2008-07-09 at 09:29 -0500, Michael Adam wrote:

> diff --git a/source/lib/ldb/ldb_map/ldb_map_outbound.c b/source/lib/ldb/ldb_map/ldb_map_outbound.c
> index 86661a2..fbc097f 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));
> }


is discard_const_p() defined in ldb headers ?
check standalone build please.


Simo.

--
Simo Sorce
Samba Team GPL Compliance Officer
Senior Software Engineer at Red Hat Inc.