aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-03 13:07:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-03 13:07:32 +0000
commit9116dd41bd2a48946d424b1f25e3783d1d2b5cec (patch)
tree353e28c5fca9812f40907459623361c61da52e9d /lib
parent213d64fbd7653eb55f7bab5688972ef7b8d5f4c1 (diff)
tv_sec is an int, so we explicitly typecast the result of long - long to
an int when we assign it.
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
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);