Removed unused variables.

This commit is contained in:
Ilia Alshanetsky 2003-11-30 19:43:30 +00:00
parent 34a3019acd
commit c344754d48
2 changed files with 3 additions and 4 deletions

View File

@ -481,17 +481,14 @@ bound:
PHPAPI int php_network_parse_network_address_with_port(const char *addr, long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC)
{
char *colon;
char *host = NULL;
int is_v6;
char *tmp;
int ret = FAILURE;
short port;
struct sockaddr_in *in4 = (struct sockaddr_in*)sa;
struct sockaddr **sal, **psal;
struct sockaddr **psal;
int n;
char *errstr = NULL;
#ifdef HAVE_IPV6
char *p;
struct sockaddr_in6 *in6 = (struct sockaddr_in6*)sa;
#endif

View File

@ -141,9 +141,11 @@ static size_t php_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS
static int php_sockop_close(php_stream *stream, int close_handle TSRMLS_DC)
{
php_netstream_data_t *sock = (php_netstream_data_t*)stream->abstract;
#ifdef PHP_WIN32
fd_set wrfds, efds;
int n;
struct timeval timeout;
#endif
if (close_handle) {