diff options
Diffstat (limited to 'docs/examples/sendrecv.c')
-rw-r--r-- | docs/examples/sendrecv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/sendrecv.c b/docs/examples/sendrecv.c index 662323487..2b9dc9b19 100644 --- a/docs/examples/sendrecv.c +++ b/docs/examples/sendrecv.c @@ -52,7 +52,7 @@ static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms) } /* select() returns the number of signalled sockets or -1 */ - res = select(sockfd + 1, &infd, &outfd, &errfd, &tv); + res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv); return res; } |