s3:winbindd: Fix size types in idmap_tdb_common
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 17:27:41 +0000 (18:27 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:15 +0000 (23:16 +0100)
This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/winbindd/idmap_tdb_common.c

index e873b60bd8f0ad132deb6f190151f0ddbc707097..48d87bb16cf17d9b7043571deaee632ef53a8914 100644 (file)
@@ -307,7 +307,7 @@ NTSTATUS idmap_tdb_common_unixids_to_sids(struct idmap_domain * dom,
                                          struct id_map ** ids)
 {
        NTSTATUS ret;
-       int i, num_mapped = 0;
+       size_t i, num_mapped = 0;
        struct idmap_tdb_common_context *ctx;
 
        NTSTATUS(*unixid_to_sid_fn) (struct idmap_domain * dom,
@@ -543,7 +543,7 @@ static NTSTATUS idmap_tdb_common_sids_to_unixids_action(struct db_context *db,
                                                        void *private_data)
 {
        struct idmap_tdb_common_sids_to_unixids_context *state = private_data;
-       int i, num_mapped = 0;
+       size_t i, num_mapped = 0;
        NTSTATUS ret = NT_STATUS_OK;
 
        DEBUG(10, ("idmap_tdb_common_sids_to_unixids: "