From 5081d146bb72a00df5970c97b2a90874b1ba662e Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Fri, 7 Jun 2019 14:48:53 +1200 Subject: [PATCH] lib ldb ldb_key_value: csbuild fix integer comparison MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes csbuild error. Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv_index.c: scope_hint: In function ‘ldb_kv_key_dn_from_idx’ lib/ldb/ldb_key_value/ldb_kv_index.c:545:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] Signed-off-by: Gary Lockyer Reviewed-by: Andreas Schneider --- lib/ldb/ldb_key_value/ldb_kv_index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ldb/ldb_key_value/ldb_kv_index.c b/lib/ldb/ldb_key_value/ldb_kv_index.c index a2eb570917d..f169b195163 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_index.c +++ b/lib/ldb/ldb_key_value/ldb_kv_index.c @@ -540,7 +540,7 @@ int ldb_kv_key_dn_from_idx(struct ldb_module *module, * DN key has been truncated, need to inspect the actual * records to locate the actual DN */ - int i; + unsigned int i; index = -1; for (i=0; i < list->count; i++) { uint8_t guid_key[LDB_KV_GUID_KEY_SIZE]; -- 2.47.3