From: Andreas Schneider Date: Thu, 7 Dec 2017 16:47:15 +0000 (+0100) Subject: s4:torture: Fix size types in qsinfo test X-Git-Tag: talloc-2.1.12~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74fbc8ed4be57b3236bd6c4344fa990410fe4670;p=thirdparty%2Fsamba.git s4:torture: Fix size types in qsinfo test This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/raw/qfsinfo.c b/source4/torture/raw/qfsinfo.c index 0f1717b9cb2..b9ce2465c20 100644 --- a/source4/torture/raw/qfsinfo.c +++ b/source4/torture/raw/qfsinfo.c @@ -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"); }