fix msvc build failure

This commit is contained in:
Igor Sysoev 2006-12-13 15:06:46 +00:00
parent b6ef94f49b
commit db4e43c225

View File

@ -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) {