[BusyBox-cvs] busybox/networking ftpgetput.c,1.6,1.7
Erik Andersen
andersen at busybox.net
Fri Jun 20 09:22:15 UTC 2003
Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv15419/networking
Modified Files:
ftpgetput.c
Log Message:
use an explicit cast on some types that change size when
large file support is enabled.
Index: ftpgetput.c
===================================================================
RCS file: /var/cvs/busybox/networking/ftpgetput.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ftpgetput.c 19 Mar 2003 09:12:37 -0000 1.6
+++ ftpgetput.c 20 Jun 2003 09:22:12 -0000 1.7
@@ -187,7 +187,7 @@
}
if (do_continue) {
- sprintf(buf, "REST %ld", beg_range);
+ sprintf(buf, "REST %ld", (long)beg_range);
if (ftpcmd(buf, NULL, control_stream, buf) != 350) {
do_continue = 0;
} else {
@@ -245,7 +245,7 @@
fd_local = bb_xopen(local_path, O_RDONLY);
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);
switch (response) {
case 200:
More information about the busybox-cvs
mailing list