mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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:
parent
213d64fbd7
commit
9116dd41bd
@ -526,7 +526,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
|
|||||||
struct timeval *tvp, tv, store;
|
struct timeval *tvp, tv, store;
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
store.tv_sec = timeout - elapsed;
|
store.tv_sec = (int)(timeout - elapsed);
|
||||||
store.tv_usec = 0;
|
store.tv_usec = 0;
|
||||||
|
|
||||||
FD_ZERO(&read_fds);
|
FD_ZERO(&read_fds);
|
||||||
|
Loading…
Reference in New Issue
Block a user