diff options
author | Simo Sorce <idra@samba.org> | 2006-08-13 07:57:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:15:31 -0500 |
commit | 8492a45f8a936943c9ddd0fd400871b78308a23d (patch) | |
tree | 7211daa3b124d475c09e7b3ce5a6256e678836ed /source4 | |
parent | faed8175063b16df94d5332581baf1af0562bb09 (diff) | |
download | samba-8492a45f8a936943c9ddd0fd400871b78308a23d.tar.gz samba-8492a45f8a936943c9ddd0fd400871b78308a23d.tar.bz2 samba-8492a45f8a936943c9ddd0fd400871b78308a23d.zip |
r17515: Fix warnings
(This used to be commit 5f7864515008a596bbf92163ef8bd48dc8269b09)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/samba/ldif_handlers.c | 14 |
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; |