summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-10-13 10:02:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:48 -0500
commit7b77baff161853f7469df899803861339a3dbc4e (patch)
treea4570ebc20f51d346179936389391f9296847f7b /source4/lib/ldb/common
parente2ec8e5e80fdf7f2819c7e6014b1f1f443e032a8 (diff)
downloadsamba-7b77baff161853f7469df899803861339a3dbc4e.tar.gz
samba-7b77baff161853f7469df899803861339a3dbc4e.tar.bz2
samba-7b77baff161853f7469df899803861339a3dbc4e.zip
r10959: fix compiler warnings
metze (This used to be commit 9a9311fa6b4bbb2a385413c056c8be57cdb9eb59)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c5
1 files changed, 3 insertions, 2 deletions
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;