From: Daniel Stenberg Date: Wed, 3 Mar 2004 13:07:32 +0000 (+0000) Subject: tv_sec is an int, so we explicitly typecast the result of long - long to X-Git-Tag: curl-7_11_1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9116dd41bd2a48946d424b1f25e3783d1d2b5cec;p=thirdparty%2Fcurl.git tv_sec is an int, so we explicitly typecast the result of long - long to an int when we assign it. --- diff --git a/lib/hostip.c b/lib/hostip.c index 166173e24d..90a9f4fe6c 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -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);