more variable type cleanups
This commit is contained in:
parent
eb9383d49b
commit
5e7f1a0eaf
@ -2044,7 +2044,7 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn)
|
|||||||
char *bytes;
|
char *bytes;
|
||||||
bytes=strstr(buf, " bytes");
|
bytes=strstr(buf, " bytes");
|
||||||
if(bytes--) {
|
if(bytes--) {
|
||||||
int in=bytes-buf;
|
long in=bytes-buf;
|
||||||
/* this is a hint there is size information in there! ;-) */
|
/* this is a hint there is size information in there! ;-) */
|
||||||
while(--in) {
|
while(--in) {
|
||||||
/* scan for the parenthesis and break there */
|
/* scan for the parenthesis and break there */
|
||||||
@ -2412,7 +2412,7 @@ CURLcode Curl_ftpsendf(struct connectdata *conn,
|
|||||||
{
|
{
|
||||||
ssize_t bytes_written;
|
ssize_t bytes_written;
|
||||||
char s[256];
|
char s[256];
|
||||||
ssize_t write_len;
|
size_t write_len;
|
||||||
char *sptr=s;
|
char *sptr=s;
|
||||||
CURLcode res = CURLE_OK;
|
CURLcode res = CURLE_OK;
|
||||||
|
|
||||||
@ -2436,7 +2436,7 @@ CURLcode Curl_ftpsendf(struct connectdata *conn,
|
|||||||
if(conn->data->set.verbose)
|
if(conn->data->set.verbose)
|
||||||
Curl_debug(conn->data, CURLINFO_HEADER_OUT, sptr, bytes_written);
|
Curl_debug(conn->data, CURLINFO_HEADER_OUT, sptr, bytes_written);
|
||||||
|
|
||||||
if(bytes_written != write_len) {
|
if(bytes_written != (ssize_t)write_len) {
|
||||||
write_len -= bytes_written;
|
write_len -= bytes_written;
|
||||||
sptr += bytes_written;
|
sptr += bytes_written;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user