Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-01-31 01:30:41 +0300
committerEric Andersen <andersen@codepoet.org>2006-01-31 01:30:41 +0300
commit0cb6f35c33a2a3fd390aaa36da72e0600f205918 (patch)
tree6f685077a27f04869b4f152cbe4287c023554afb /networking/httpd.c
parent5e678873f9ff7c95d43b278feee547ce989b3b20 (diff)
fix up annoying signed/unsigned and mixed type errors
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c4
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[] = "./";
#ifdef CONFIG_LFS
# define cont_l_fmt "%lld"
+# define cont_l_type (long long)
#else
# define cont_l_fmt "%ld"
+# define cont_l_type (long)
#endif
#define TIMEOUT 60
@@ -1028,7 +1030,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 " cont_l_fmt "\r\n",
- timeStr, Content_length, config->ContentLength);
+ timeStr, Content_length, cont_l_type config->ContentLength);
}
strcat(buf, "\r\n");
len += 2;