tv_sec is an int, so we explicitly typecast the result of long - long to

an int when we assign it.
This commit is contained in:
Daniel Stenberg 2004-03-03 13:07:32 +00:00
parent 213d64fbd7
commit 9116dd41bd
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
struct timeval *tvp, tv, store;
int count;
store.tv_sec = timeout - elapsed;
store.tv_sec = (int)(timeout - elapsed);
store.tv_usec = 0;
FD_ZERO(&read_fds);