Mercurial > hg > nginx-quic
comparison src/http/ngx_http_header_filter_module.c @ 2532:aa53ef3e36e9
remove seldom used variable
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 24 Feb 2009 07:21:35 +0000 |
parents | 5b9b270ea16f |
children | c843171d5dc2 |
comparison
equal
deleted
inserted
replaced
2531:5b9b270ea16f | 2532:aa53ef3e36e9 |
---|---|
157 ngx_buf_t *b; | 157 ngx_buf_t *b; |
158 ngx_uint_t status, i, port; | 158 ngx_uint_t status, i, port; |
159 ngx_chain_t out; | 159 ngx_chain_t out; |
160 ngx_list_part_t *part; | 160 ngx_list_part_t *part; |
161 ngx_table_elt_t *header; | 161 ngx_table_elt_t *header; |
162 ngx_connection_t *c; | |
163 ngx_http_core_loc_conf_t *clcf; | 162 ngx_http_core_loc_conf_t *clcf; |
164 ngx_http_core_srv_conf_t *cscf; | 163 ngx_http_core_srv_conf_t *cscf; |
165 struct sockaddr_in *sin; | 164 struct sockaddr_in *sin; |
166 #if (NGX_HAVE_INET6) | 165 #if (NGX_HAVE_INET6) |
167 struct sockaddr_in6 *sin6; | 166 struct sockaddr_in6 *sin6; |
300 if (ngx_http_server_addr(r, &host) != NGX_OK) { | 299 if (ngx_http_server_addr(r, &host) != NGX_OK) { |
301 return NGX_ERROR; | 300 return NGX_ERROR; |
302 } | 301 } |
303 } | 302 } |
304 | 303 |
305 c = r->connection; | 304 switch (r->connection->local_sockaddr->sa_family) { |
306 | |
307 switch (c->local_sockaddr->sa_family) { | |
308 | 305 |
309 #if (NGX_HAVE_INET6) | 306 #if (NGX_HAVE_INET6) |
310 case AF_INET6: | 307 case AF_INET6: |
311 sin6 = (struct sockaddr_in6 *) c->local_sockaddr; | 308 sin6 = (struct sockaddr_in6 *) r->connection->local_sockaddr; |
312 port = ntohs(sin6->sin6_port); | 309 port = ntohs(sin6->sin6_port); |
313 break; | 310 break; |
314 #endif | 311 #endif |
315 default: /* AF_INET */ | 312 default: /* AF_INET */ |
316 sin = (struct sockaddr_in *) c->local_sockaddr; | 313 sin = (struct sockaddr_in *) r->connection->local_sockaddr; |
317 port = ntohs(sin->sin_port); | 314 port = ntohs(sin->sin_port); |
318 break; | 315 break; |
319 } | 316 } |
320 | 317 |
321 #if (NGX_HTTP_SSL) | 318 #if (NGX_HTTP_SSL) |