From: Gary Lockyer Date: Fri, 7 Jun 2019 02:48:53 +0000 (+1200) Subject: lib ldb ldb_key_value: csbuild fix integer comparison X-Git-Tag: ldb-2.0.5~387 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5081d146bb72a00df5970c97b2a90874b1ba662e;p=thirdparty%2Fsamba.git lib ldb ldb_key_value: csbuild fix integer comparison 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 --- 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];