cvs: php4 /ext/standard fsock.c

From: Date: Sat, 13 Jul 2002 07:11:00 +0000
Subject: cvs: php4 /ext/standard fsock.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12816@lists.php.net to get a copy of this message
sniper Sat Jul 13 03:11:00 2002 EDT Modified files: /php4/ext/standard fsock.c Log: nuke unused variable warning Index: php4/ext/standard/fsock.c diff -u php4/ext/standard/fsock.c:1.96 php4/ext/standard/fsock.c:1.97 --- php4/ext/standard/fsock.c:1.96 Mon Jun 10 23:55:28 2002 +++ php4/ext/standard/fsock.c Sat Jul 13 03:10:59 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fsock.c,v 1.96 2002/06/11 03:55:28 jason Exp $ */ +/* $Id: fsock.c,v 1.97 2002/07/13 07:10:59 sniper Exp $ */ /* converted to PHP Streams and moved much code to main/network.c [wez] */ @@ -121,7 +121,6 @@ char *host; int host_len; int port = -1; - int err; zval *zerrno = NULL, *zerrstr = NULL; double timeout = 60; unsigned long conv; @@ -193,9 +192,14 @@ else #endif stream = php_stream_sock_open_host(host, (unsigned short)port, socktype, (int)timeout, persistent); + #ifdef PHP_WIN32 - /* Preserve error */ - err = WSAGetLastError(); + { + int err; + + /* Preserve error */ + err = WSAGetLastError(); + } #endif if (stream == NULL) {

« previous php.cvs (#12816) next »