comparison src/http/ngx_http_upstream_round_robin.c @ 916:327aef5c6ac4

fix msvc build failure
author Igor Sysoev <igor@sysoev.ru>
date Wed, 13 Dec 2006 15:06:46 +0000
parents a0310ac2814f
children 451e34738078
comparison
equal deleted inserted replaced
915:28aa941811e6 916:327aef5c6ac4
69 } 69 }
70 70
71 ngx_memzero(&u, sizeof(ngx_url_t)); 71 ngx_memzero(&u, sizeof(ngx_url_t));
72 72
73 u.host = us->host; 73 u.host = us->host;
74 u.port = us->port ? us->port : us->default_port; 74 u.port = (in_port_t) (us->port ? us->port : us->default_port);
75 75
76 if (ngx_inet_resolve_host(cf, &u) != NGX_OK) { 76 if (ngx_inet_resolve_host(cf, &u) != NGX_OK) {
77 if (u.err) { 77 if (u.err) {
78 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, 78 ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
79 "%s in upstream \"%V\" in %s:%ui", 79 "%s in upstream \"%V\" in %s:%ui",