aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-28 12:37:16 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-28 12:37:16 +0000
commit5c7596058dedb99ab0fbe773cc7ac61a2ffe9fbf (patch)
tree8fa1fa4abeb29eb5ca5829a084a07fae55bc679b /networking
parent8c35d65c43216bb840326ac7476a180e2ae36fe9 (diff)
downloadbusybox-5c7596058dedb99ab0fbe773cc7ac61a2ffe9fbf.tar.gz
ls: cleanup part 1
Diffstat (limited to 'networking')
-rw-r--r--networking/ftpgetput.c2
-rw-r--r--networking/httpd.c2
-rw-r--r--networking/wget.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 6608e6830..739a44155 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -149,7 +149,7 @@ int ftp_receive(ftp_host_info_t *server, FILE *control_stream,
}
if (do_continue) {
- sprintf(buf, "REST "OFF_FMT, beg_range);
+ sprintf(buf, "REST %"OFF_FMT, beg_range);
if (ftpcmd(buf, NULL, control_stream, buf) != 350) {
do_continue = 0;
} else {
diff --git a/networking/httpd.c b/networking/httpd.c
index 803c45e6e..e927c955f 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -919,7 +919,7 @@ static int sendHeaders(HttpResponseNum responseNum)
if (config->ContentLength != -1) { /* file */
strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod));
- len += sprintf(buf+len, "Last-Modified: %s\r\n%s "OFF_FMT"\r\n",
+ len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"\r\n",
timeStr, Content_length, (off_t) config->ContentLength);
}
strcat(buf, "\r\n");
diff --git a/networking/wget.c b/networking/wget.c
index c163209f2..8850fdfb7 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -286,7 +286,7 @@ int wget_main(int argc, char **argv)
#endif
if (beg_range)
- fprintf(sfp, "Range: bytes="OFF_FMT"-\r\n", beg_range);
+ fprintf(sfp, "Range: bytes=%"OFF_FMT"-\r\n", beg_range);
#if ENABLE_FEATURE_WGET_LONG_OPTIONS
if (extra_headers)
fputs(extra_headers, sfp);
@@ -427,7 +427,7 @@ int wget_main(int argc, char **argv)
dfp = open_socket(&s_in);
if (beg_range) {
- sprintf(buf, "REST "OFF_FMT, beg_range);
+ sprintf(buf, "REST %"OFF_FMT, beg_range);
if (ftpcmd(buf, NULL, sfp, buf) == 350)
content_len -= beg_range;
}