aboutsummaryrefslogtreecommitdiff
path: root/lib/select.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-04-26 17:26:22 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-04-26 17:26:22 +0000
commit12db20be4e8b0130aba7342a1124eb85e3115822 (patch)
tree4d754b6232fe7b739396ff97060d3c90ecba27a1 /lib/select.c
parent3cbb1b2b64453c5504df5696ffbf72cb08e43f9c (diff)
Fixed signed/unsigned convertion errors in Salford-C.
#ifdef around WSAEDISCON in strerror.c.
Diffstat (limited to 'lib/select.c')
-rw-r--r--lib/select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/select.c b/lib/select.c
index 343dc469f..cf5f15a8f 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -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)