lib ldb ldb_key_value: csbuild fix signed unsigned compare
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 7 Jun 2019 03:19:25 +0000 (15:19 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 13 Jun 2019 07:16:23 +0000 (07:16 +0000)
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 <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/ldb/ldb_key_value/ldb_kv_index.c

index 5299a073e290bccbd9fefaf8b1e2306c6d8cc944..3a96e5ad8b3b47a8dd20c9a2b352e2aca7f57783 100644 (file)
@@ -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 = {