summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-16 21:45:15 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-16 21:45:15 +0200
commitad7859dfff3598d351aa91b025e4afba7ab46382 (patch)
tree17e777a04ac6e9518274ef01584b4108c5097190 /source4/lib
parent7e388c8b2763a11aac50b390ccd3697a15b5be65 (diff)
downloadsamba-ad7859dfff3598d351aa91b025e4afba7ab46382.tar.gz
samba-ad7859dfff3598d351aa91b025e4afba7ab46382.tar.bz2
samba-ad7859dfff3598d351aa91b025e4afba7ab46382.zip
s4:ldif_handlers.c - fix warning
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb-samba/ldif_handlers.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/ldb-samba/ldif_handlers.c b/source4/lib/ldb-samba/ldif_handlers.c
index 2ce1055d0d..a7706ac6dc 100644
--- a/source4/lib/ldb-samba/ldif_handlers.c
+++ b/source4/lib/ldb-samba/ldif_handlers.c
@@ -930,9 +930,10 @@ static int samba_ldb_dn_link_canonicalise(struct ldb_context *ldb, void *mem_ctx
/* By including the RMD_FLAGS of a deleted DN, we ensure it
* does not casually match a not deleted DN */
if (dsdb_dn_is_deleted_val(in)) {
- out->data = talloc_asprintf(mem_ctx, "<RMD_FLAGS=%u>%s",
- dsdb_dn_val_rmd_flags(in),
- ldb_dn_get_casefold(dn));
+ out->data = (uint8_t *)talloc_asprintf(mem_ctx,
+ "<RMD_FLAGS=%u>%s",
+ dsdb_dn_val_rmd_flags(in),
+ ldb_dn_get_casefold(dn));
} else {
out->data = (uint8_t *)ldb_dn_alloc_casefold(mem_ctx, dn);
}