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/mail/ngx_mail_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/mail/ngx_mail_core_module.c')
-rw-r--r-- | src/mail/ngx_mail_core_module.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mail/ngx_mail_core_module.c b/src/mail/ngx_mail_core_module.c index 271afc473..c2192961e 100644 --- a/src/mail/ngx_mail_core_module.c +++ b/src/mail/ngx_mail_core_module.c @@ -434,8 +434,7 @@ ngx_mail_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; |