diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2015-08-17 18:09:17 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2015-08-17 18:09:17 +0300 |
commit | 84b0ad63fbe5f0de38ae642060a96db34e14287f (patch) | |
tree | 372cf86634b40d036fec188acedb38fb5715937a /src/stream/ngx_stream_core_module.c | |
parent | 1576cd10aabf94e02e65a900302c87c3c149c265 (diff) | |
download | nginx-84b0ad63fbe5f0de38ae642060a96db34e14287f.tar.gz nginx-84b0ad63fbe5f0de38ae642060a96db34e14287f.zip |
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/stream/ngx_stream_core_module.c')
-rw-r--r-- | src/stream/ngx_stream_core_module.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stream/ngx_stream_core_module.c b/src/stream/ngx_stream_core_module.c index b02e5ca5a..4fe68187e 100644 --- a/src/stream/ngx_stream_core_module.c +++ b/src/stream/ngx_stream_core_module.c @@ -372,8 +372,7 @@ ngx_stream_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) if (ngx_strncmp(value[i].data, "ipv6only=o", 10) == 0) { #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) - struct sockaddr *sa; - u_char buf[NGX_SOCKADDR_STRLEN]; + u_char buf[NGX_SOCKADDR_STRLEN]; sa = &ls->u.sockaddr; |