From 9116dd41bd2a48946d424b1f25e3783d1d2b5cec Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 3 Mar 2004 13:07:32 +0000 Subject: [PATCH] tv_sec is an int, so we explicitly typecast the result of long - long to an int when we assign it. --- lib/hostip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hostip.c b/lib/hostip.c index 166173e24..90a9f4fe6 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);