From 9810fd06cb3358dbc880ccfcb30a49e693623d0c Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Mon, 20 Jun 2016 15:11:50 +0300 Subject: Fixed build on MSVC. --- src/core/ngx_inet.c | 2 +- src/mail/ngx_mail_auth_http_module.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 3590ee695..c4aaf3a84 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -581,7 +581,7 @@ ngx_parse_addr_port(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, return rc; } - ngx_inet_set_port(addr->sockaddr, port); + ngx_inet_set_port(addr->sockaddr, (in_port_t) port); return NGX_OK; } diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c index 5aaff8ed8..a94434a2f 100644 --- a/src/mail/ngx_mail_auth_http_module.c +++ b/src/mail/ngx_mail_auth_http_module.c @@ -809,7 +809,7 @@ ngx_mail_auth_http_process_headers(ngx_mail_session_t *s, return; } - ngx_inet_set_port(peer->sockaddr, port); + ngx_inet_set_port(peer->sockaddr, (in_port_t) port); len = ctx->addr.len + 1 + ctx->port.len; -- cgit