diff options
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index c00f3e46d..b44adf730 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -123,8 +123,10 @@ static const char home[] = "./"; | |||
123 | 123 | ||
124 | #ifdef CONFIG_LFS | 124 | #ifdef CONFIG_LFS |
125 | # define cont_l_fmt "%lld" | 125 | # define cont_l_fmt "%lld" |
126 | # define cont_l_type (long long) | ||
126 | #else | 127 | #else |
127 | # define cont_l_fmt "%ld" | 128 | # define cont_l_fmt "%ld" |
129 | # define cont_l_type (long) | ||
128 | #endif | 130 | #endif |
129 | 131 | ||
130 | #define TIMEOUT 60 | 132 | #define TIMEOUT 60 |
@@ -1028,7 +1030,7 @@ static int sendHeaders(HttpResponseNum responseNum) | |||
1028 | if (config->ContentLength != -1) { /* file */ | 1030 | if (config->ContentLength != -1) { /* file */ |
1029 | strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); | 1031 | strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); |
1030 | len += sprintf(buf+len, "Last-Modified: %s\r\n%s " cont_l_fmt "\r\n", | 1032 | len += sprintf(buf+len, "Last-Modified: %s\r\n%s " cont_l_fmt "\r\n", |
1031 | timeStr, Content_length, config->ContentLength); | 1033 | timeStr, Content_length, cont_l_type config->ContentLength); |
1032 | } | 1034 | } |
1033 | strcat(buf, "\r\n"); | 1035 | strcat(buf, "\r\n"); |
1034 | len += 2; | 1036 | len += 2; |