From ea06ad2e31d6842605acd47ece0d4662a04df3a6 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 12 May 2016 08:36:21 +0200 Subject: [PATCH] openssl: fix compile-time warning in Curl_ossl_check_cxn() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... introduced in curl-7_48_0-293-g2968c83: Error: COMPILER_WARNING: lib/vtls/openssl.c: scope_hint: In function ‘Curl_ossl_check_cxn’ lib/vtls/openssl.c:767:15: warning: conversion to ‘int’ from ‘ssize_t’ may alter its value [-Wconversion] --- lib/vtls/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index af3c502a7..6b70c0ccc 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -763,7 +763,7 @@ int Curl_ossl_check_cxn(struct connectdata *conn) recv MSG_PEEK instead. Bug #795 */ #ifdef MSG_PEEK char buf; - int nread; + ssize_t nread; nread = recv((RECV_TYPE_ARG1)conn->sock[FIRSTSOCKET], (RECV_TYPE_ARG2)&buf, (RECV_TYPE_ARG3)1, (RECV_TYPE_ARG4)MSG_PEEK); if(nread == 0)