s3:torture: Fix size types in spoolss test
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 16:50:33 +0000 (17:50 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:15 +0000 (23:16 +0100)
This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/rpc/spoolss.c

index 91f32692042906456d1434fcf710734b42d1b88c..48ad3d1e2e3069a9d1e2cf56dc7aab3ee95077e9 100644 (file)
@@ -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++) {