]> git.kaiwu.me - nginx.git/commitdiff
delete unneeded cast
authorIgor Sysoev <igor@sysoev.ru>
Mon, 18 May 2009 07:47:58 +0000 (07:47 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 18 May 2009 07:47:58 +0000 (07:47 +0000)
src/http/ngx_http_request.c

index 32f120c8e9cbb349712980a8eacc94090c7a1ca0..39bf57ee282906ec730bd634da9c6abd575a9b3c 100644 (file)
@@ -321,7 +321,7 @@ ngx_http_init_request(ngx_event_t *rev)
         case AF_INET6:
             sin6 = (struct sockaddr_in6 *) c->local_sockaddr;
 
-            addr6 = (ngx_http_in6_addr_t *) port->addrs;
+            addr6 = port->addrs;
 
             /* the last address is "*" */
 
@@ -360,7 +360,7 @@ ngx_http_init_request(ngx_event_t *rev)
 
 #if (NGX_HAVE_INET6)
         case AF_INET6:
-            addr6 = (ngx_http_in6_addr_t *) port->addrs;
+            addr6 = port->addrs;
             addr_conf = &addr6[0].conf;
             break;
 #endif