From 7b77baff161853f7469df899803861339a3dbc4e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 13 Oct 2005 10:02:36 +0000 Subject: r10959: fix compiler warnings metze (This used to be commit 9a9311fa6b4bbb2a385413c056c8be57cdb9eb59) --- source4/lib/ldb/common/ldb_dn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb/common') diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index 5895432431..4c1e9a9d07 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -857,10 +857,11 @@ static char *ldb_dn_canonical(void *mem_ctx, const struct ldb_dn *dn, int ex_for break; } if (cracked) { - cracked = talloc_asprintf(mem_ctx, "%s.%s", dn->components[i].value.data, + cracked = talloc_asprintf(mem_ctx, "%s.%s", + (const char *)dn->components[i].value.data, cracked); } else { - cracked = talloc_strdup(mem_ctx, dn->components[i].value.data); + cracked = talloc_strdup(mem_ctx, (const char *)dn->components[i].value.data); } if (!cracked) { return NULL; -- cgit