From: Andreas Schneider Date: Thu, 22 Mar 2018 17:36:13 +0000 (+0100) Subject: s3:torture: Fix size types in make_nonstd_fd() X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=deccc84b73b0fa550cdf28a5fd4569d1a8477679 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 --- 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;