[nginx] Fixed build on MSVC.

Roman Arutyunyan arut at nginx.com
Mon Jun 20 13:43:04 UTC 2016


details:   http://hg.nginx.org/nginx/rev/0a820872dd4c
branches:  
changeset: 6597:0a820872dd4c
user:      Roman Arutyunyan <arut at nginx.com>
date:      Mon Jun 20 15:11:50 2016 +0300
description:
Fixed build on MSVC.

diffstat:

 src/core/ngx_inet.c                  |  2 +-
 src/mail/ngx_mail_auth_http_module.c |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r e778fe9a4463 -r 0a820872dd4c src/core/ngx_inet.c
--- a/src/core/ngx_inet.c	Mon Jun 20 12:48:47 2016 +0300
+++ b/src/core/ngx_inet.c	Mon Jun 20 15:11:50 2016 +0300
@@ -581,7 +581,7 @@ ngx_parse_addr_port(ngx_pool_t *pool, ng
         return rc;
     }
 
-    ngx_inet_set_port(addr->sockaddr, port);
+    ngx_inet_set_port(addr->sockaddr, (in_port_t) port);
 
     return NGX_OK;
 }
diff -r e778fe9a4463 -r 0a820872dd4c src/mail/ngx_mail_auth_http_module.c
--- a/src/mail/ngx_mail_auth_http_module.c	Mon Jun 20 12:48:47 2016 +0300
+++ b/src/mail/ngx_mail_auth_http_module.c	Mon Jun 20 15:11:50 2016 +0300
@@ -809,7 +809,7 @@ ngx_mail_auth_http_process_headers(ngx_m
                 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;
 



More information about the nginx-devel mailing list