From: Andreas Schneider Date: Thu, 7 Dec 2017 16:50:33 +0000 (+0100) Subject: s3:torture: Fix size types in spoolss test X-Git-Tag: talloc-2.1.12~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5a8c49c1bc71eb751c57d076f452d7a2c3e95ea;p=thirdparty%2Fsamba.git s3:torture: Fix size types in spoolss test This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 91f32692042..48ad3d1e2e3 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -5630,7 +5630,7 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx, REG_BINARY }; const char *str = "abcdefghi"; - int t, s; + size_t t, s; for (t=0; t < ARRAY_SIZE(types); t++) { for (s=0; s < strlen(str); s++) {