From 13540613edfcde827a41f60d78d64c63eb99f065 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 7 Dec 2017 17:49:00 +0100 Subject: [PATCH] s4:torture: Fix size types in qfileinfo test This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- source4/torture/raw/qfileinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c index 0c5daa3ccc30..dd529250969f 100644 --- a/source4/torture/raw/qfileinfo.c +++ b/source4/torture/raw/qfileinfo.c @@ -229,9 +229,9 @@ static bool torture_raw_qfileinfo_internals(struct torture_context *torture, int fnum, const char *fname, bool is_ipc) { - int i; + size_t i; bool ret = true; - int count; + size_t count; union smb_fileinfo *s1, *s2; NTTIME correct_time; uint64_t correct_size; @@ -333,7 +333,7 @@ static bool torture_raw_qfileinfo_internals(struct torture_context *torture, if (count != 0) { ret = false; - printf("%d levels failed\n", count); + printf("%zu levels failed\n", count); if (count > 35) { torture_fail(torture, "too many level failures - giving up"); } -- 2.34.1