diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-03-16 13:35:20 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-03-16 13:35:20 +0000 |
| commit | 9c61095a30ed2b6bf051dacbbbd26ae2769d9e34 (patch) | |
| tree | b3552c24563e7343e796315e5daee1070f11fb51 /src/http/ngx_http.c | |
| parent | 10a543a810ac78eb5d754302b001debf9cd420c4 (diff) | |
| download | nginx-9c61095a30ed2b6bf051dacbbbd26ae2769d9e34.tar.gz nginx-9c61095a30ed2b6bf051dacbbbd26ae2769d9e34.tar.bz2 | |
nginx-0.0.3-2004-03-16-16:35:20 import
Diffstat (limited to 'src/http/ngx_http.c')
| -rw-r--r-- | src/http/ngx_http.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 9d53d8861..4ddca787e 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -496,8 +496,7 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ls->addr_text.len = ngx_snprintf((char *) ls->addr_text.data + ngx_inet_ntop(AF_INET, - (u_char *) - &in_addr[a].addr, + &in_addr[a].addr, ls->addr_text.data, INET_ADDRSTRLEN), 6, ":%d", in_port[p].port); @@ -597,7 +596,7 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) in_addr = in_port[p].addrs.elts; for (a = 0; a < in_port[p].addrs.nelts; a++) { u_char ip[20]; - ngx_inet_ntop(AF_INET, (u_char *) &in_addr[a].addr, ip, 20); + ngx_inet_ntop(AF_INET, &in_addr[a].addr, ip, 20); ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0, "%s %08x", ip, in_addr[a].core_srv_conf); s_name = in_addr[a].names.elts; |
