[nginx] Win32: fixed build after 384154fc634f.

Dmitry Volyntsev xeioex at nginx.com
Wed Mar 23 17:27:29 UTC 2016


details:   http://hg.nginx.org/nginx/rev/034329824dd3
branches:  
changeset: 6460:034329824dd3
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Mar 23 18:34:05 2016 +0300
description:
Win32: fixed build after 384154fc634f.

diffstat:

 src/core/ngx_resolver.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 78fc2dce69e7 -r 034329824dd3 src/core/ngx_resolver.c
--- a/src/core/ngx_resolver.c	Wed Mar 23 17:45:15 2016 +0300
+++ b/src/core/ngx_resolver.c	Wed Mar 23 18:34:05 2016 +0300
@@ -2758,7 +2758,7 @@ ngx_resolver_process_srv(ngx_resolver_t 
         }
 
         rn->u.srvs = srvs;
-        rn->nsrvs = nsrvs;
+        rn->nsrvs = (u_short) nsrvs;
 
         j = 0;
         i = ans;
@@ -4243,8 +4243,7 @@ ngx_resolver_export(ngx_resolver_t *r, n
 static void
 ngx_resolver_report_srv(ngx_resolver_t *r, ngx_resolver_ctx_t *ctx)
 {
-    u_short                   nsrvs;
-    ngx_uint_t                naddrs, nw, i, j, k, l, m, n, w;
+    ngx_uint_t                naddrs, nsrvs, nw, i, j, k, l, m, n, w;
     ngx_resolver_addr_t      *addrs;
     ngx_resolver_srv_name_t  *srvs;
 



More information about the nginx-devel mailing list