projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a0d5c4
)
typecast the coversion from long to int
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 27 Nov 2004 09:27:48 +0000
(09:27 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 27 Nov 2004 09:27:48 +0000
(09:27 +0000)
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
4a6f07a
..
e33f4b3
100644
(file)
--- a/
lib/ftp.c
+++ b/
lib/ftp.c
@@
-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 */