aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-05-07 22:14:28 +0200
committerMarcel Raad <raad@teamviewer.com>2017-05-07 22:14:28 +0200
commitd99acd937a01ee7111c347e08c1f25cea54a6ab9 (patch)
tree4e124f4612ce7af0a2964340d8f4772c664479ce /docs/examples
parentf67aa4d31c41eb91b0339cc66da5a199e70e7b4b (diff)
sendrecv: fix MinGW-w64 warning
The first argument to select is an int, while curl_socket_t is unsigned long long when using WinSock. It's ignored anyway [1]. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms740141.aspx
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/sendrecv.c2
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;
}