From: Yang Tse Date: Mon, 25 Sep 2006 00:54:32 +0000 (+0000) Subject: Compiler warning fix X-Git-Tag: curl-7_16_0~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15d8bb2105f307b48005906d754c18e69538ccae;p=thirdparty%2Fcurl.git Compiler warning fix --- diff --git a/lib/getinfo.c b/lib/getinfo.c index 62cedfc059..8e44b53ff2 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -214,8 +214,10 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) #ifdef MSG_PEEK else { /* use the socket */ - if(recv((int)c->sock[FIRSTSOCKET], (void*)&buf, 1, MSG_PEEK) == 0) + if(recv((RECV_TYPE_ARG1)c->sock[FIRSTSOCKET], (RECV_TYPE_ARG2)&buf, + (RECV_TYPE_ARG3)1, (RECV_TYPE_ARG4)MSG_PEEK) == 0) { *param_longp = -1; /* FIN received */ + } } #endif }