mirror of
https://github.com/curl/curl.git
synced 2026-07-28 11:53:05 +03:00
Fixed signed/unsigned convertion errors in Salford-C.
#ifdef around WSAEDISCON in strerror.c.
This commit is contained in:
parent
3cbb1b2b64
commit
12db20be4e
4 changed files with 6 additions and 5 deletions
|
|
@ -131,7 +131,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
|
|||
timeout.tv_usec = (timeout_ms % 1000) * 1000;
|
||||
|
||||
FD_ZERO(&fds_err);
|
||||
maxfd = -1;
|
||||
maxfd = (curl_socket_t)-1;
|
||||
|
||||
FD_ZERO(&fds_read);
|
||||
if (readfd != CURL_SOCKET_BAD) {
|
||||
|
|
@ -206,7 +206,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
|
|||
FD_ZERO(&fds_read);
|
||||
FD_ZERO(&fds_write);
|
||||
FD_ZERO(&fds_err);
|
||||
maxfd = -1;
|
||||
maxfd = (curl_socket_t)-1;
|
||||
|
||||
for (i = 0; i < nfds; i++) {
|
||||
if (ufds[i].fd == CURL_SOCKET_BAD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue