summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-12 08:51:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-12 08:51:30 +0000
commit5f538ce3f81565d7a9aa3d112cd3ebc023390e55 (patch)
tree02d7dfa48a872de69b4158318b4b0f1b9478c9d6
parentebcaa3d5790414d8e678ed0b32d4283218802fe6 (diff)
downloadgnurl-5f538ce3f81565d7a9aa3d112cd3ebc023390e55.tar.gz
gnurl-5f538ce3f81565d7a9aa3d112cd3ebc023390e55.tar.bz2
gnurl-5f538ce3f81565d7a9aa3d112cd3ebc023390e55.zip
typecast to fix warning on 64bit systems
-rw-r--r--lib/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index 75e340064..6d4ed94aa 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3373,9 +3373,9 @@ static CURLcode CreateConnection(struct SessionHandle *data,
#ifdef HAVE_ALARM
/* alarm() makes a signal get sent when the timeout fires off, and that
will abort system calls */
- prev_alarm = alarm(data->set.connecttimeout?
- data->set.connecttimeout:
- data->set.timeout);
+ prev_alarm = alarm((unsigned int) (data->set.connecttimeout?
+ data->set.connecttimeout:
+ data->set.timeout));
/* We can expect the conn->created time to be "now", as that was just
recently set in the beginning of this function and nothing slow
has been done since then until now. */