Loading lib/ftp.c +2 −2 Original line number Diff line number Diff line Loading @@ -445,7 +445,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ ssize_t gotbytes; char *ptr; long timeout; /* timeout in milliseconds */ int interval_ms; long interval_ms; struct SessionHandle *data = conn->data; char *line_start; int code=0; /* default ftp "error code" to return */ Loading Loading @@ -494,7 +494,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ if(timeout < interval_ms) interval_ms = timeout; switch (Curl_select(sockfd, CURL_SOCKET_BAD, interval_ms)) { switch (Curl_select(sockfd, CURL_SOCKET_BAD, (int)interval_ms)) { case -1: /* select() error, stop reading */ result = CURLE_RECV_ERROR; failf(data, "FTP response aborted due to select() error: %d", Loading lib/http.c +1 −1 Original line number Diff line number Diff line Loading @@ -1234,7 +1234,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, /* loop every second at least, less if the timeout is near */ switch (Curl_select(tunnelsocket, CURL_SOCKET_BAD, check<1000?check:1000)) { check<1000L?(int)check:1000)) { case -1: /* select() error, stop reading */ error = SELECT_ERROR; failf(data, "Proxy CONNECT aborted due to select() error"); Loading lib/transfer.c +2 −2 Original line number Diff line number Diff line Loading @@ -1549,11 +1549,11 @@ CURLcode Curl_readwrite(struct connectdata *conn, if (data->set.timeout && (Curl_tvdiff(k->now, k->start) >= data->set.timeout)) { if (k->size != -1) { failf(data, "Operation timed out after %d milliseconds with %" failf(data, "Operation timed out after %ld milliseconds with %" FORMAT_OFF_T " out of %" FORMAT_OFF_T " bytes received", data->set.timeout, k->bytecount, k->size); } else { failf(data, "Operation timed out after %d milliseconds with %" failf(data, "Operation timed out after %ld milliseconds with %" FORMAT_OFF_T " bytes received", data->set.timeout, k->bytecount); } Loading Loading
lib/ftp.c +2 −2 Original line number Diff line number Diff line Loading @@ -445,7 +445,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ ssize_t gotbytes; char *ptr; long timeout; /* timeout in milliseconds */ int interval_ms; long interval_ms; struct SessionHandle *data = conn->data; char *line_start; int code=0; /* default ftp "error code" to return */ Loading Loading @@ -494,7 +494,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ if(timeout < interval_ms) interval_ms = timeout; switch (Curl_select(sockfd, CURL_SOCKET_BAD, interval_ms)) { switch (Curl_select(sockfd, CURL_SOCKET_BAD, (int)interval_ms)) { case -1: /* select() error, stop reading */ result = CURLE_RECV_ERROR; failf(data, "FTP response aborted due to select() error: %d", Loading
lib/http.c +1 −1 Original line number Diff line number Diff line Loading @@ -1234,7 +1234,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, /* loop every second at least, less if the timeout is near */ switch (Curl_select(tunnelsocket, CURL_SOCKET_BAD, check<1000?check:1000)) { check<1000L?(int)check:1000)) { case -1: /* select() error, stop reading */ error = SELECT_ERROR; failf(data, "Proxy CONNECT aborted due to select() error"); Loading
lib/transfer.c +2 −2 Original line number Diff line number Diff line Loading @@ -1549,11 +1549,11 @@ CURLcode Curl_readwrite(struct connectdata *conn, if (data->set.timeout && (Curl_tvdiff(k->now, k->start) >= data->set.timeout)) { if (k->size != -1) { failf(data, "Operation timed out after %d milliseconds with %" failf(data, "Operation timed out after %ld milliseconds with %" FORMAT_OFF_T " out of %" FORMAT_OFF_T " bytes received", data->set.timeout, k->bytecount, k->size); } else { failf(data, "Operation timed out after %d milliseconds with %" failf(data, "Operation timed out after %ld milliseconds with %" FORMAT_OFF_T " bytes received", data->set.timeout, k->bytecount); } Loading