summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorCrístian Deives <cristiandeives@gmail.com>2010-03-08 23:45:44 -0300
committerAndrew Tridgell <tridge@samba.org>2010-03-12 16:31:20 +1100
commita0527dd790c12d9f3d7e579103a48dd420946e40 (patch)
tree034b20608b02c8e59dfd9a410f18c5565a074177 /source4
parent208e2801b4715626a46292ca9d576d34d7fbfef2 (diff)
downloadsamba-a0527dd790c12d9f3d7e579103a48dd420946e40.tar.gz
samba-a0527dd790c12d9f3d7e579103a48dd420946e40.tar.bz2
samba-a0527dd790c12d9f3d7e579103a48dd420946e40.zip
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.
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/kcc/kcc_topology.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/dsdb/kcc/kcc_topology.c b/source4/dsdb/kcc/kcc_topology.c
index 4d3953492d..a2dd4dd4b6 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;