changeset 2530:5d53ad3a8319

axe unneeded port field
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Feb 2009 21:30:31 +0000
parents 339da812982c
children 5b9b270ea16f
files src/http/ngx_http.c src/http/ngx_http_core_module.h
diffstat 2 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http.c	Mon Feb 23 21:19:35 2009 +0000
+++ b/src/http/ngx_http.c	Mon Feb 23 21:30:31 2009 +0000
@@ -1647,8 +1647,6 @@
 
         ls->servers = hport;
 
-        hport->port = ntohs(port->port);
-
         for (i = ls->addr_text.len - 1; i; i--) {
 
             if (ls->addr_text.data[i] == ':') {
--- a/src/http/ngx_http_core_module.h	Mon Feb 23 21:19:35 2009 +0000
+++ b/src/http/ngx_http_core_module.h	Mon Feb 23 21:30:31 2009 +0000
@@ -200,7 +200,6 @@
 
 
 typedef struct {
-    in_port_t                  port;
     ngx_str_t                  port_text;
 
     /* ngx_http_in_addr_t or ngx_http_in6_addr_t */