summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-16 13:35:20 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-16 13:35:20 +0000
commit9c61095a30ed2b6bf051dacbbbd26ae2769d9e34 (patch)
treeb3552c24563e7343e796315e5daee1070f11fb51 /src/http/ngx_http.c
parent10a543a810ac78eb5d754302b001debf9cd420c4 (diff)
downloadnginx-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.c5
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;