aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-09-25 00:54:32 +0000
committerYang Tse <yangsita@gmail.com>2006-09-25 00:54:32 +0000
commit15d8bb2105f307b48005906d754c18e69538ccae (patch)
tree5310003b881e4f96a13f6a8d29988f8e9097503f /lib
parentb2ca777a08c9a23a9d9b90fc8106f3305744fec2 (diff)
Compiler warning fix
Diffstat (limited to 'lib')
-rw-r--r--lib/getinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 62cedfc05..8e44b53ff 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
}