diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-02-23 21:30:31 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-23 21:30:31 +0000 |
| commit | 4da223c8b54546d3773fd3dcacdae7d7723caf46 (patch) | |
| tree | 4bf526ab41ab2d621997b0a3903aa1c63ec960bd | |
| parent | 80a4f29c8aed45497aef158f477fb828313f2e27 (diff) | |
| download | nginx-4da223c8b54546d3773fd3dcacdae7d7723caf46.tar.gz nginx-4da223c8b54546d3773fd3dcacdae7d7723caf46.tar.bz2 | |
axe unneeded port field
| -rw-r--r-- | src/http/ngx_http.c | 2 | ||||
| -rw-r--r-- | src/http/ngx_http_core_module.h | 1 |
2 files changed, 0 insertions, 3 deletions
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 */ |
