summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/samba/ldif_handlers.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/lib/ldb/samba/ldif_handlers.c b/source4/lib/ldb/samba/ldif_handlers.c
index e68e3545db..b490c8f005 100644
--- a/source4/lib/ldb/samba/ldif_handlers.c
+++ b/source4/lib/ldb/samba/ldif_handlers.c
@@ -300,16 +300,16 @@ static int ldif_canonicalise_objectCategory(struct ldb_context *ldb, void *mem_c
dn1 = ldb_dn_explode(mem_ctx, (char *)in->data);
if (dn1 == NULL) {
- oc1 = talloc_strndup(mem_ctx, in->data, in->length);
+ oc1 = talloc_strndup(mem_ctx, (char *)in->data, in->length);
} else if (dn1->comp_num >= 1 && strcasecmp(dn1->components[0].name, "cn") == 0) {
- oc1 = talloc_strndup(mem_ctx, dn1->components[0].value.data,
+ oc1 = talloc_strndup(mem_ctx, (char *)dn1->components[0].value.data,
dn1->components[0].value.length);
} else {
return -1;
}
oc1 = ldb_casefold(ldb, mem_ctx, oc1);
- out->data = oc1;
+ out->data = (void *)oc1;
out->length = strlen(oc1);
return 0;
}
@@ -323,9 +323,9 @@ static int ldif_comparison_objectCategory(struct ldb_context *ldb, void *mem_ctx
dn1 = ldb_dn_explode(mem_ctx, (char *)v1->data);
if (dn1 == NULL) {
- oc1 = talloc_strndup(mem_ctx, v1->data, v1->length);
+ oc1 = talloc_strndup(mem_ctx, (char *)v1->data, v1->length);
} else if (dn1->comp_num >= 1 && strcasecmp(dn1->components[0].name, "cn") == 0) {
- oc1 = talloc_strndup(mem_ctx, dn1->components[0].value.data,
+ oc1 = talloc_strndup(mem_ctx, (char *)dn1->components[0].value.data,
dn1->components[0].value.length);
} else {
oc1 = NULL;
@@ -333,9 +333,9 @@ static int ldif_comparison_objectCategory(struct ldb_context *ldb, void *mem_ctx
dn2 = ldb_dn_explode(mem_ctx, (char *)v2->data);
if (dn2 == NULL) {
- oc2 = talloc_strndup(mem_ctx, v2->data, v2->length);
+ oc2 = talloc_strndup(mem_ctx, (char *)v2->data, v2->length);
} else if (dn2->comp_num >= 2 && strcasecmp(dn2->components[0].name, "cn") == 0) {
- oc2 = talloc_strndup(mem_ctx, dn2->components[0].value.data,
+ oc2 = talloc_strndup(mem_ctx, (char *)dn2->components[0].value.data,
dn2->components[0].value.length);
} else {
oc2 = NULL;