From 22d9610a1fd7cf2c1421ec3f63e8e78ffdfd790a Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 7 Nov 2009 12:15:38 +0100 Subject: s4:dsdb/common/util - samdb_result_hashes - use "unsigned int" for counters --- source4/dsdb/common/util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 393e1d45f5..dcbb462e71 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -563,9 +563,8 @@ struct samr_Password *samdb_result_hash(TALLOC_CTX *mem_ctx, const struct ldb_me uint_t samdb_result_hashes(TALLOC_CTX *mem_ctx, const struct ldb_message *msg, const char *attr, struct samr_Password **hashes) { - uint_t count = 0; + uint_t count, i; const struct ldb_val *val = ldb_msg_find_ldb_val(msg, attr); - int i; *hashes = NULL; if (!val) { -- cgit