1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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
This commit is contained in:
Marcel Raad 2017-05-07 22:14:28 +02:00
parent f67aa4d31c
commit d99acd937a
No known key found for this signature in database
GPG Key ID: B4668817AE6D6CD4

View File

@ -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;
}