summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-08-06 17:07:28 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-08-06 17:07:28 +0000
commit20ce4fcbbf7c1504cc520905dfde1b2790011e31 (patch)
tree4d719fab466d77fd82c54e29eae01ab84ff70353 /src/http
parenta24d4d23f770856762a7f3f11f29c0f8b517b1ab (diff)
downloadnginx-20ce4fcbbf7c1504cc520905dfde1b2790011e31.tar.gz
nginx-20ce4fcbbf7c1504cc520905dfde1b2790011e31.tar.bz2
Merge of r4760, r4761: -Wmissing-prototypes.
Fixed compilation with -Wmissing-prototypes. Added a commented out -Wmissing-prototypes to CFLAGS. It is commented out to not break builds with 3rd party modules.
Diffstat (limited to 'src/http')
-rw-r--r--src/http/modules/ngx_http_log_module.c2
-rw-r--r--src/http/modules/ngx_http_upstream_least_conn_module.c2
-rw-r--r--src/http/ngx_http_parse_time.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c
index edb145992..5b9c79986 100644
--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -218,7 +218,7 @@ static ngx_http_log_var_t ngx_http_log_vars[] = {
};
-ngx_int_t
+static ngx_int_t
ngx_http_log_handler(ngx_http_request_t *r)
{
u_char *line, *p;
diff --git a/src/http/modules/ngx_http_upstream_least_conn_module.c b/src/http/modules/ngx_http_upstream_least_conn_module.c
index 50e68b21b..21156ae1a 100644
--- a/src/http/modules/ngx_http_upstream_least_conn_module.c
+++ b/src/http/modules/ngx_http_upstream_least_conn_module.c
@@ -81,7 +81,7 @@ ngx_module_t ngx_http_upstream_least_conn_module = {
};
-ngx_int_t
+static ngx_int_t
ngx_http_upstream_init_least_conn(ngx_conf_t *cf,
ngx_http_upstream_srv_conf_t *us)
{
diff --git a/src/http/ngx_http_parse_time.c b/src/http/ngx_http_parse_time.c
index 3801df2fd..985af3172 100644
--- a/src/http/ngx_http_parse_time.c
+++ b/src/http/ngx_http_parse_time.c
@@ -7,6 +7,7 @@
#include <ngx_config.h>
#include <ngx_core.h>
+#include <ngx_http.h>
static ngx_uint_t mday[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };