summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2015-08-17 18:09:17 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2015-08-17 18:09:17 +0300
commit84b0ad63fbe5f0de38ae642060a96db34e14287f (patch)
tree372cf86634b40d036fec188acedb38fb5715937a /src/http/modules
parent1576cd10aabf94e02e65a900302c87c3c149c265 (diff)
downloadnginx-84b0ad63fbe5f0de38ae642060a96db34e14287f.tar.gz
nginx-84b0ad63fbe5f0de38ae642060a96db34e14287f.tar.bz2
Win32: MSVC 2015 compatibility.
Resolved warnings about declarations that hide previous local declarations. Warnings about WSASocketA() being deprecated resolved by explicit use of WSASocketW() instead of WSASocket(). When compiling without IPv6 support, WinSock deprecated warnings are disabled to allow use of gethostbyname().
Diffstat (limited to 'src/http/modules')
-rw-r--r--src/http/modules/ngx_http_fastcgi_module.c1
-rw-r--r--src/http/modules/ngx_http_map_module.c10
2 files changed, 5 insertions, 6 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c
index f3f78e804..668719fe5 100644
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -1770,7 +1770,6 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r)
#if (NGX_HTTP_CACHE)
if (f->large_stderr && r->cache) {
- u_char *start;
ssize_t len;
ngx_http_fastcgi_header_t *fh;
diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c
index 3245e0413..2b80d0f10 100644
--- a/src/http/modules/ngx_http_map_module.c
+++ b/src/http/modules/ngx_http_map_module.c
@@ -375,7 +375,7 @@ ngx_http_map_cmp_dns_wildcards(const void *one, const void *two)
static char *
ngx_http_map(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
{
- ngx_int_t rc, index;
+ ngx_int_t rv, index;
ngx_str_t *value, name;
ngx_uint_t i, key;
ngx_http_map_conf_ctx_t *ctx;
@@ -546,19 +546,19 @@ found:
value[0].data++;
}
- rc = ngx_hash_add_key(&ctx->keys, &value[0], var,
+ rv = ngx_hash_add_key(&ctx->keys, &value[0], var,
(ctx->hostnames) ? NGX_HASH_WILDCARD_KEY : 0);
- if (rc == NGX_OK) {
+ if (rv == NGX_OK) {
return NGX_CONF_OK;
}
- if (rc == NGX_DECLINED) {
+ if (rv == NGX_DECLINED) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"invalid hostname or wildcard \"%V\"", &value[0]);
}
- if (rc == NGX_BUSY) {
+ if (rv == NGX_BUSY) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"conflicting parameter \"%V\"", &value[0]);
}