diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-30 16:41:52 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-30 15:00:04 +0000 |
commit | 45ee4e9a6b3847dc54b3c6bec8b4ebccbbac93da (patch) | |
tree | e5e3ac721c5e7fde3f6e2dcb549b7e171de7c9f3 | |
parent | 5ab8e4f7e190c40f3da675c295e2580c92a86d39 (diff) | |
download | samba-45ee4e9a6b3847dc54b3c6bec8b4ebccbbac93da.tar.gz samba-45ee4e9a6b3847dc54b3c6bec8b4ebccbbac93da.tar.bz2 samba-45ee4e9a6b3847dc54b3c6bec8b4ebccbbac93da.zip |
s4:partition_init LDB module - fix counter type
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition_init.c | 6 |
1 files 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); |