s4:torture: Fix size types in qsinfo test
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 16:47:15 +0000 (17:47 +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/raw/qfsinfo.c

index 0f1717b9cb285d7438b9cf8944ef944be6ae45b2..b9ce2465c20a29e22938e7a6627d657411dcea49 100644 (file)
@@ -124,9 +124,9 @@ static union smb_fsinfo *find(const char *name)
 bool torture_raw_qfsinfo(struct torture_context *torture, 
                         struct smbcli_state *cli)
 {
-       int i;
+       size_t i;
        bool ret = true;
-       int count;
+       size_t count;
        union smb_fsinfo *s1, *s2;      
 
        /* scan all the levels, pulling the results */
@@ -152,7 +152,7 @@ bool torture_raw_qfsinfo(struct torture_context *torture,
        }
 
        if (count != 0) {
-               torture_comment(torture, "%d levels failed\n", count);
+               torture_comment(torture, "%zu levels failed\n", count);
                torture_assert(torture, count > 13, "too many level failures - giving up");
        }