From 4610a863ef5dd747acd38d73530e3b52ba2432cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cr=C3=ADstian=20Deives?= Date: Mon, 8 Mar 2010 23:45:44 -0300 Subject: [PATCH] use unsigned instead of uint32_t for LDB counters. the attribute num_values of the struct ldb_message_element is defined as an unsigned int, so the counters of that variable should be of the same type. --- source4/dsdb/kcc/kcc_topology.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source4/dsdb/kcc/kcc_topology.c b/source4/dsdb/kcc/kcc_topology.c index 4d3953492d1..a2dd4dd4b6c 100644 --- a/source4/dsdb/kcc/kcc_topology.c +++ b/source4/dsdb/kcc/kcc_topology.c @@ -538,7 +538,7 @@ static NTSTATUS kcctpl_create_edge(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, const char * const attrs[] = { "siteList", NULL }; int ret; struct ldb_message_element *el; - uint32_t i; + unsigned int i; struct ldb_val val; tmp_ctx = talloc_new(mem_ctx); @@ -694,7 +694,7 @@ static NTSTATUS kcctpl_create_edge_set(struct ldb_context *ldb, struct kcctpl_multi_edge_set *set; TALLOC_CTX *tmp_ctx; struct ldb_message_element *el; - uint32_t i; + unsigned int i; tmp_ctx = talloc_new(ldb); NT_STATUS_HAVE_NO_MEMORY(tmp_ctx); @@ -1182,7 +1182,6 @@ static NTSTATUS kcctpl_get_all_bridgehead_dcs(struct ldb_context *ldb, for (i = 0; i < res->count; i++) { struct ldb_message *dc, *new_data; - uint32_t j; struct ldb_dn *parent_dn; uint64_t behavior_version; const char *dc_transport_address; @@ -1204,7 +1203,10 @@ static NTSTATUS kcctpl_get_all_bridgehead_dcs(struct ldb_context *ldb, } if (el && (el->num_values >= 1)) { - bool contains = false; + bool contains; + unsigned int j; + + contains = false; for (j = 0; j < el->num_values; j++) { struct ldb_val val; -- 2.11.4.GIT