diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-05-18 16:21:00 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-18 16:21:00 +0400 |
commit | 739e29b651dc0f6f176884cce697018b4b522a67 (patch) | |
tree | a97fd63814c3262549d88bedf9876dc70a9ea5ad /src | |
parent | 610cbd4223262a473e3513b1c6a6ff4f8c83a0d5 (diff) |
delete unneeded field
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_inet.c | 3 | ||||
-rw-r--r-- | src/core/ngx_inet.h | 7 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/core/ngx_inet.c b/src/core/ngx_inet.c index 3debac37e..4c180361d 100644 --- a/src/core/ngx_inet.c +++ b/src/core/ngx_inet.c @@ -518,7 +518,6 @@ ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u) (void) ngx_cpystrn(p, host, len); - u->addr.in_addr = inet_addr((const char *) p); sin->sin_addr.s_addr = inet_addr((const char *) p); if (sin->sin_addr.s_addr == INADDR_NONE) { @@ -530,7 +529,6 @@ ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u) return NGX_ERROR; } - u->addr.in_addr = *(in_addr_t *) (h->h_addr_list[0]); sin->sin_addr.s_addr = *(in_addr_t *) (h->h_addr_list[0]); } @@ -541,7 +539,6 @@ ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u) ngx_free(p); } else { - u->addr.in_addr = INADDR_ANY; sin->sin_addr.s_addr = INADDR_ANY; u->wildcard = 1; } diff --git a/src/core/ngx_inet.h b/src/core/ngx_inet.h index 855740933..7562c9e80 100644 --- a/src/core/ngx_inet.h +++ b/src/core/ngx_inet.h @@ -61,11 +61,6 @@ typedef struct { } ngx_cidr_t; -typedef union { - in_addr_t in_addr; -} ngx_url_addr_t; - - typedef struct { struct sockaddr *sockaddr; socklen_t socklen; @@ -91,8 +86,6 @@ typedef struct { unsigned no_port:1; unsigned wildcard:1; - ngx_url_addr_t addr; - socklen_t socklen; u_char sockaddr[NGX_SOCKADDRLEN]; |