From 566ca19482afc3c18fc157be49431b1901e11397 Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Fri, 7 Jun 2019 15:19:25 +1200 Subject: [PATCH] lib ldb ldb_key_value: csbuild fix signed unsigned compare MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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_index_add1’ lib/ldb/ldb_key_value/ldb_kv_index.c:2601: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 5299a073e29..3a96e5ad8b3 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_index.c +++ b/lib/ldb/ldb_key_value/ldb_kv_index.c @@ -2596,7 +2596,7 @@ static int ldb_kv_index_add1(struct ldb_module *module, * * So need to pull the DN's to check if it's really a duplicate */ - int i; + unsigned int i; for (i=0; i < list->count; i++) { uint8_t guid_key[LDB_KV_GUID_KEY_SIZE]; struct ldb_val key = {