summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-12-07 17:54:12 +0100
committerJeremy Allison <jra@samba.org>2018-03-20 23:16:15 +0100
commitf5fd615cbf727663ad082176511dfad90969083d (patch)
treef731bbe4c710367210baac4d141cb3ee8de064ce /source4
parentba3e21cea0dc70a8e8e6fc6e88c1721a3a455b9d (diff)
downloadsamba-f5fd615cbf727663ad082176511dfad90969083d.tar.gz
s4:torture: Fix size types in nss tests
This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/local/nss_tests.c4
1 files changed, 2 insertions, 2 deletions
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;