aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-12-26 14:29:37 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-12-26 14:29:37 +0100
commit97c00ae13439ad8114ad7d2150c8dde464f04eb1 (patch)
treeb3a026f18b472c6d1ba0980aac2b7fcf12c059fc
parent4fe954c14851d2f913c41c581cbe49300b0984e4 (diff)
downloadbusybox-w32-97c00ae13439ad8114ad7d2150c8dde464f04eb1.tar.gz
busybox-w32-97c00ae13439ad8114ad7d2150c8dde464f04eb1.tar.bz2
busybox-w32-97c00ae13439ad8114ad7d2150c8dde464f04eb1.zip
httpd: fix compile failure if !FEATURE_HTTPD_RANGES
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/httpd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 1ba1d1063..33045163f 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1880,9 +1880,13 @@ static NOINLINE void send_file_and_exit(const char *url, int what)
1880#if ENABLE_FEATURE_USE_SENDFILE 1880#if ENABLE_FEATURE_USE_SENDFILE
1881 { 1881 {
1882 off_t offset; 1882 off_t offset;
1883# if ENABLE_FEATURE_HTTPD_RANGES
1883 if (range_start < 0) 1884 if (range_start < 0)
1884 range_start = 0; 1885 range_start = 0;
1885 offset = range_start; 1886 offset = range_start;
1887# else
1888 offset = 0;
1889# endif
1886 while (1) { 1890 while (1) {
1887 /* sz is rounded down to 64k */ 1891 /* sz is rounded down to 64k */
1888 ssize_t sz = MAXINT(ssize_t) - 0xffff; 1892 ssize_t sz = MAXINT(ssize_t) - 0xffff;