Commit 9116dd41 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

an int when we assign it.
parent 213d64fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);