diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-12-13 15:06:46 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-12-13 15:06:46 +0000 |
commit | db4e43c225429376abaa36f9eb6f537402f0c6db (patch) | |
tree | 8079136a2f3460d9cd124f543acae1a3103c2a5f /src/http/ngx_http_upstream_round_robin.c | |
parent | b6ef94f49b2073d21a511eaadf11c5ef076f9f87 (diff) | |
download | nginx-db4e43c225429376abaa36f9eb6f537402f0c6db.tar.gz nginx-db4e43c225429376abaa36f9eb6f537402f0c6db.zip |
fix msvc build failure
Diffstat (limited to 'src/http/ngx_http_upstream_round_robin.c')
-rw-r--r-- | src/http/ngx_http_upstream_round_robin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream_round_robin.c b/src/http/ngx_http_upstream_round_robin.c index 89937efde..359a73624 100644 --- a/src/http/ngx_http_upstream_round_robin.c +++ b/src/http/ngx_http_upstream_round_robin.c @@ -71,7 +71,7 @@ ngx_http_upstream_init_round_robin(ngx_conf_t *cf, ngx_memzero(&u, sizeof(ngx_url_t)); u.host = us->host; - u.port = us->port ? us->port : us->default_port; + u.port = (in_port_t) (us->port ? us->port : us->default_port); if (ngx_inet_resolve_host(cf, &u) != NGX_OK) { if (u.err) { |