From 45ee4e9a6b3847dc54b3c6bec8b4ebccbbac93da Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 30 Oct 2010 16:41:52 +0200 Subject: s4:partition_init LDB module - fix counter type --- source4/dsdb/samdb/ldb_modules/partition_init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source4/dsdb/samdb/ldb_modules/partition_init.c b/source4/dsdb/samdb/ldb_modules/partition_init.c index 775e566d51..7118fa0b32 100644 --- a/source4/dsdb/samdb/ldb_modules/partition_init.c +++ b/source4/dsdb/samdb/ldb_modules/partition_init.c @@ -45,7 +45,9 @@ static int partition_sort_compare(const void *v1, const void *v2) } /* Load the list of DNs that we must replicate to all partitions */ -static int partition_load_replicate_dns(struct ldb_context *ldb, struct partition_private_data *data, struct ldb_message *msg) +static int partition_load_replicate_dns(struct ldb_context *ldb, + struct partition_private_data *data, + struct ldb_message *msg) { struct ldb_message_element *replicate_attributes = ldb_msg_find_element(msg, "replicateEntries"); @@ -53,7 +55,7 @@ static int partition_load_replicate_dns(struct ldb_context *ldb, struct partitio if (!replicate_attributes) { data->replicate = NULL; } else { - int i; + unsigned int i; data->replicate = talloc_array(data, struct ldb_dn *, replicate_attributes->num_values + 1); if (!data->replicate) { return ldb_oom(ldb); -- cgit