projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2ca777
)
Compiler warning fix
author
Yang Tse
<yangsita@gmail.com>
Mon, 25 Sep 2006 00:54:32 +0000
(
00:54
+0000)
committer
Yang Tse
<yangsita@gmail.com>
Mon, 25 Sep 2006 00:54:32 +0000
(
00:54
+0000)
lib/getinfo.c
patch
|
blob
|
history
diff --git
a/lib/getinfo.c
b/lib/getinfo.c
index
62cedfc
..
8e44b53
100644
(file)
--- 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
}