aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-03 13:24:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-03 13:24:14 +0000
commit5e7f1a0eaf64bfa9279d63e2124ac45588bb902b (patch)
tree5b298c8a3de57904b615e0660d5cbadc1c3561ea /lib/ftp.c
parenteb9383d49b4f2e5d1107ed4911d3e40e296dfedd (diff)
more variable type cleanups
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index edd63147e..424d485a8 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2044,7 +2044,7 @@ CURLcode Curl_ftp_nextconnect(struct connectdata *conn)
char *bytes;
bytes=strstr(buf, " bytes");
if(bytes--) {
- int in=bytes-buf;
+ long in=bytes-buf;
/* this is a hint there is size information in there! ;-) */
while(--in) {
/* scan for the parenthesis and break there */
@@ -2412,7 +2412,7 @@ CURLcode Curl_ftpsendf(struct connectdata *conn,
{
ssize_t bytes_written;
char s[256];
- ssize_t write_len;
+ size_t write_len;
char *sptr=s;
CURLcode res = CURLE_OK;
@@ -2436,7 +2436,7 @@ CURLcode Curl_ftpsendf(struct connectdata *conn,
if(conn->data->set.verbose)
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;
sptr += bytes_written;
}