From f5fd615cbf727663ad082176511dfad90969083d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 7 Dec 2017 17:54:12 +0100 Subject: [PATCH] s4:torture: Fix size types in nss tests This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- source4/torture/local/nss_tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/torture/local/nss_tests.c b/source4/torture/local/nss_tests.c index 2cd61225ab8b..cc02047d5656 100644 --- a/source4/torture/local/nss_tests.c +++ b/source4/torture/local/nss_tests.c @@ -899,7 +899,7 @@ static bool test_reentrant_enumeration_crosschecks(struct torture_context *tctx) static bool test_passwd_duplicates(struct torture_context *tctx) { - int i, d; + size_t i, d; struct passwd *pwd; size_t num_pwd; int duplicates = 0; @@ -934,7 +934,7 @@ static bool test_passwd_duplicates(struct torture_context *tctx) static bool test_group_duplicates(struct torture_context *tctx) { - int i, d; + size_t i, d; struct group *grp; size_t num_grp; int duplicates = 0; -- 2.34.1