aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-03 13:17:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-03 13:17:44 +0000
commiteb9383d49b4f2e5d1107ed4911d3e40e296dfedd (patch)
tree292d26fe1d3a486fdd738153ab9115338947077c
parent817d17354e0da790f6c221410912bc82b2c803ad (diff)
our timeout values are longs while 'tv_sec' is int
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index c0a18ca1c..edd63147e 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -151,7 +151,7 @@ static CURLcode AllowServerConnect(struct connectdata *conn)
}
/* we give the server 60 seconds to connect to us, or a custom timeout */
- dt.tv_sec = timeout?timeout:60;
+ dt.tv_sec = (int)(timeout?timeout:60);
dt.tv_usec = 0;
switch (select(sock+1, &rdset, NULL, NULL, &dt)) {
@@ -216,7 +216,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
bool keepon=TRUE;
ssize_t gotbytes;
char *ptr;
- int timeout; /* timeout in seconds */
+ long timeout; /* timeout in seconds */
struct timeval interval;
fd_set rkeepfd;
fd_set readfd;