{
struct timeval pending_tv;
struct timeval *ptimeout;
- int pending_ms = 0;
+ int pending_ms;
int r;
#ifdef USE_WINSOCK
{
#ifdef HAVE_POLL_FINE
struct pollfd pfd[3];
- int pending_ms = 0;
+ int pending_ms;
int num;
#else
fd_set fds_read;
pending_ms = (int)timeout_ms;
else if(timeout_ms < 0)
pending_ms = -1;
- else if(!timeout_ms)
+ else
pending_ms = 0;
r = poll(pfd, num, pending_ms);
int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
{
#ifdef HAVE_POLL_FINE
- int pending_ms = 0;
+ int pending_ms;
#else
fd_set fds_read;
fd_set fds_write;
pending_ms = timeout_ms;
else if(timeout_ms < 0)
pending_ms = -1;
- else if(!timeout_ms)
+ else
pending_ms = 0;
r = poll(ufds, nfds, pending_ms);