use an explicit cast on some types that change size when
large file support is enabled.
This commit is contained in:
parent
1b2e7c3b2a
commit
2a41ec6c63
@ -187,7 +187,7 @@ static int ftp_recieve(FILE *control_stream, const char *host, const char *local
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (do_continue) {
|
if (do_continue) {
|
||||||
sprintf(buf, "REST %ld", beg_range);
|
sprintf(buf, "REST %ld", (long)beg_range);
|
||||||
if (ftpcmd(buf, NULL, control_stream, buf) != 350) {
|
if (ftpcmd(buf, NULL, control_stream, buf) != 350) {
|
||||||
do_continue = 0;
|
do_continue = 0;
|
||||||
} else {
|
} else {
|
||||||
@ -245,7 +245,7 @@ static int ftp_send(FILE *control_stream, const char *host, const char *server_p
|
|||||||
fd_local = bb_xopen(local_path, O_RDONLY);
|
fd_local = bb_xopen(local_path, O_RDONLY);
|
||||||
fstat(fd_local, &sbuf);
|
fstat(fd_local, &sbuf);
|
||||||
|
|
||||||
sprintf(buf, "ALLO %lu", sbuf.st_size);
|
sprintf(buf, "ALLO %lu", (unsigned long)sbuf.st_size);
|
||||||
response = ftpcmd(buf, NULL, control_stream, buf);
|
response = ftpcmd(buf, NULL, control_stream, buf);
|
||||||
switch (response) {
|
switch (response) {
|
||||||
case 200:
|
case 200:
|
||||||
|
Loading…
Reference in New Issue
Block a user