1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

openssl: fix compile-time warning in Curl_ossl_check_cxn()

... 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]
This commit is contained in:
Kamil Dudka 2016-05-12 08:36:21 +02:00
parent 2968c83967
commit ea06ad2e31

View File

@ -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)