From 4da223c8b54546d3773fd3dcacdae7d7723caf46 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 23 Feb 2009 21:30:31 +0000 Subject: axe unneeded port field --- src/http/ngx_http.c | 2 -- src/http/ngx_http_core_module.h | 1 - 2 files changed, 3 deletions(-) (limited to 'src') diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index ecd9c97d7..080ef8e8e 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1647,8 +1647,6 @@ ngx_http_init_listening(ngx_conf_t *cf, ngx_http_conf_port_t *port) ls->servers = hport; - hport->port = ntohs(port->port); - for (i = ls->addr_text.len - 1; i; i--) { if (ls->addr_text.data[i] == ':') { diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 2fdc1020b..018bd1bc9 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -200,7 +200,6 @@ typedef struct { typedef struct { - in_port_t port; ngx_str_t port_text; /* ngx_http_in_addr_t or ngx_http_in6_addr_t */ -- cgit