From: Andreas Schneider Date: Thu, 7 Dec 2017 16:54:12 +0000 (+0100) Subject: s4:torture: Fix size types in nss tests X-Git-Tag: talloc-2.1.12~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5fd615cbf727663ad082176511dfad90969083d;p=thirdparty%2Fsamba.git s4:torture: Fix size types in nss tests This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/local/nss_tests.c b/source4/torture/local/nss_tests.c index 2cd61225ab8..cc02047d565 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;