From 8a108f624d516cb12396f135e21891c41a16852d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 7 Dec 2017 18:27:41 +0100 Subject: [PATCH] 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 --- source3/winbindd/idmap_tdb_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: " -- 2.34.1