cvs: php4 /main network.c

From: Date: Sat, 08 Mar 2003 16:53:54 +0000
Subject: cvs: php4 /main network.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19464@lists.php.net to get a copy of this message
helly Sat Mar 8 11:53:54 2003 EDT Modified files: /php4/main network.c Log: fix warnings - one left Index: php4/main/network.c diff -u php4/main/network.c:1.97 php4/main/network.c:1.98 --- php4/main/network.c:1.97 Sat Mar 1 13:47:18 2003 +++ php4/main/network.c Sat Mar 8 11:53:54 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: network.c,v 1.97 2003/03/01 18:47:18 moriyoshi Exp $ */ +/* $Id: network.c,v 1.98 2003/03/08 16:53:54 helly Exp $ */ /*#define DEBUG_MAIN_NETWORK 1*/ @@ -434,6 +434,7 @@ break; default: /* Unknown family */ + socklen = 0; sa = NULL; } @@ -509,7 +510,7 @@ break; -#if HAVE_IPV6 +#if HAVE_IPV6 && HAVE_INET_NTOP case AF_INET6: buf = (char*)inet_ntop(sa->sa_family, &((struct sockaddr_in6*)sa)->sin6_addr, (char *)&abuf, sizeof(abuf)); if (buf) { @@ -711,6 +712,7 @@ break; default: /* Unknown family */ + socklen = 0; sa = NULL; }

« previous php.cvs (#19464) next »