]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib ldb ldb_key_value: csbuild fix integer comparison
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 7 Jun 2019 02:48:53 +0000 (14:48 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 13 Jun 2019 07:16:22 +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_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 <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/ldb/ldb_key_value/ldb_kv_index.c

index a2eb570917d6fb37eb1123a32b3e8f70bdaffc0d..f169b19516388db4bd7db4fdaabcc8375dcfdd7f 100644 (file)
@@ -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];