diff --git a/lib/ftp.c b/lib/ftp.c index c0a18ca1c724ce9974381b8e4b73bf6398aba5c5..edd63147e01b20c427cd04d148389b6d9a95cfa7 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;