remove seldom used variable
Igor Sysoev
11 years ago
158 | 158 | ngx_chain_t out; |
159 | 159 | ngx_list_part_t *part; |
160 | 160 | ngx_table_elt_t *header; |
161 | ngx_connection_t *c; | |
162 | 161 | ngx_http_core_loc_conf_t *clcf; |
163 | 162 | ngx_http_core_srv_conf_t *cscf; |
164 | 163 | struct sockaddr_in *sin; |
301 | 300 | } |
302 | 301 | } |
303 | 302 | |
304 | c = r->connection; | |
305 | ||
306 | switch (c->local_sockaddr->sa_family) { | |
303 | switch (r->connection->local_sockaddr->sa_family) { | |
307 | 304 | |
308 | 305 | #if (NGX_HAVE_INET6) |
309 | 306 | case AF_INET6: |
310 | sin6 = (struct sockaddr_in6 *) c->local_sockaddr; | |
307 | sin6 = (struct sockaddr_in6 *) r->connection->local_sockaddr; | |
311 | 308 | port = ntohs(sin6->sin6_port); |
312 | 309 | break; |
313 | 310 | #endif |
314 | 311 | default: /* AF_INET */ |
315 | sin = (struct sockaddr_in *) c->local_sockaddr; | |
312 | sin = (struct sockaddr_in *) r->connection->local_sockaddr; | |
316 | 313 | port = ntohs(sin->sin_port); |
317 | 314 | break; |
318 | 315 | } |