diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-01-30 22:30:41 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-01-30 22:30:41 +0000 |
commit | 0cb6f35c33a2a3fd390aaa36da72e0600f205918 (patch) | |
tree | 6f685077a27f04869b4f152cbe4287c023554afb /networking/httpd.c | |
parent | 5e678873f9ff7c95d43b278feee547ce989b3b20 (diff) | |
download | busybox-w32-0cb6f35c33a2a3fd390aaa36da72e0600f205918.tar.gz busybox-w32-0cb6f35c33a2a3fd390aaa36da72e0600f205918.tar.bz2 busybox-w32-0cb6f35c33a2a3fd390aaa36da72e0600f205918.zip |
fix up annoying signed/unsigned and mixed type errors
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; |