]> granicus.if.org Git - curl/commitdiff
tv_sec is an int, so we explicitly typecast the result of long - long to
authorDaniel Stenberg <daniel@haxx.se>
Wed, 3 Mar 2004 13:07:32 +0000 (13:07 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 3 Mar 2004 13:07:32 +0000 (13:07 +0000)
an int when we assign it.

lib/hostip.c

index 166173e24d49c479c54dffef881e991b4139d4e6..90a9f4fe6cc64ef0eccb7a2995e247e1841ea39d 100644 (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);