From deccc84b73b0fa550cdf28a5fd4569d1a8477679 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 22 Mar 2018 18:36:13 +0100 Subject: [PATCH] s3:torture: Fix size types in make_nonstd_fd() This fixes compilation with -Wstrict-overflow=2. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- source3/torture/wbc_async.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/torture/wbc_async.c b/source3/torture/wbc_async.c index 1a7495acad86..a9020ddcda5a 100644 --- a/source3/torture/wbc_async.c +++ b/source3/torture/wbc_async.c @@ -98,10 +98,10 @@ struct wb_context { static int make_nonstd_fd(int fd) { - int i; + size_t i; int sys_errno = 0; int fds[3]; - int num_fds = 0; + size_t num_fds = 0; if (fd == -1) { return -1; -- 2.34.1