From: Andreas Schneider Date: Thu, 7 Dec 2017 17:27:41 +0000 (+0100) Subject: s3:winbindd: Fix size types in idmap_tdb_common X-Git-Tag: talloc-2.1.12~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a108f624d516cb12396f135e21891c41a16852d;p=thirdparty%2Fsamba.git s3:winbindd: Fix size types in idmap_tdb_common This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/winbindd/idmap_tdb_common.c b/source3/winbindd/idmap_tdb_common.c index e873b60bd8f..48d87bb16cf 100644 --- a/source3/winbindd/idmap_tdb_common.c +++ b/source3/winbindd/idmap_tdb_common.c @@ -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: "