diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-06-20 09:22:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-06-20 09:22:12 +0000 |
commit | 2a41ec6c6304a5101cf3ee898335fee7efc76b22 (patch) | |
tree | c4b6491973516a20145240cf0153d8d8e247ecd4 | |
parent | 1b2e7c3b2a8e14b5657844365fd2b61fc88bb99e (diff) | |
download | busybox-w32-2a41ec6c6304a5101cf3ee898335fee7efc76b22.tar.gz busybox-w32-2a41ec6c6304a5101cf3ee898335fee7efc76b22.tar.bz2 busybox-w32-2a41ec6c6304a5101cf3ee898335fee7efc76b22.zip |
use an explicit cast on some types that change size when
large file support is enabled.
-rw-r--r-- | networking/ftpgetput.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 394389043..41f45414a 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -187,7 +187,7 @@ static int ftp_recieve(FILE *control_stream, const char *host, const char *local | |||
187 | } | 187 | } |
188 | 188 | ||
189 | if (do_continue) { | 189 | if (do_continue) { |
190 | sprintf(buf, "REST %ld", beg_range); | 190 | sprintf(buf, "REST %ld", (long)beg_range); |
191 | if (ftpcmd(buf, NULL, control_stream, buf) != 350) { | 191 | if (ftpcmd(buf, NULL, control_stream, buf) != 350) { |
192 | do_continue = 0; | 192 | do_continue = 0; |
193 | } else { | 193 | } else { |
@@ -245,7 +245,7 @@ static int ftp_send(FILE *control_stream, const char *host, const char *server_p | |||
245 | fd_local = bb_xopen(local_path, O_RDONLY); | 245 | fd_local = bb_xopen(local_path, O_RDONLY); |
246 | fstat(fd_local, &sbuf); | 246 | fstat(fd_local, &sbuf); |
247 | 247 | ||
248 | sprintf(buf, "ALLO %lu", sbuf.st_size); | 248 | sprintf(buf, "ALLO %lu", (unsigned long)sbuf.st_size); |
249 | response = ftpcmd(buf, NULL, control_stream, buf); | 249 | response = ftpcmd(buf, NULL, control_stream, buf); |
250 | switch (response) { | 250 | switch (response) { |
251 | case 200: | 251 | case 200: |