s4:partition_init LDB module - fix counter type
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 30 Oct 2010 14:41:52 +0000 (16:41 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 30 Oct 2010 15:00:04 +0000 (15:00 +0000)
source4/dsdb/samdb/ldb_modules/partition_init.c

index 775e566d517fe25168b612726af0d0cee93ba390..7118fa0b3214c44dcc9be08fc3c94d186ffad2ef 100644 (file)
@@ -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);