From d99acd937a01ee7111c347e08c1f25cea54a6ab9 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 7 May 2017 22:14:28 +0200 Subject: 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 --- docs/examples/sendrecv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3