diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-11-27 09:27:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-11-27 09:27:48 +0000 |
commit | a4752673bb1a2c74c0cb2042ad9154c833585cf8 (patch) | |
tree | 62a38ef9ec1e86ab5d02b1aa0d57183166e29b55 /lib | |
parent | 9a0d5c4ed820f83c04f8fd4871f67cdbbc59080e (diff) |
typecast the coversion from long to int
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -176,8 +176,9 @@ static CURLcode AllowServerConnect(struct connectdata *conn) } } - /* we give the server 60 seconds to connect to us, or a custom timeout */ - timeout_ms = (timeout?timeout:60) * 1000; + /* We allow the server 60 seconds to connect to us, or a custom timeout. + Note the typecast here. */ + timeout_ms = (timeout?(int)timeout:60) * 1000; switch (Curl_select(sock, CURL_SOCKET_BAD, timeout_ms)) { case -1: /* error */ |