cvs: php4 /ext/sockets php_sockets.h sockets.c

From: Date: Thu, 01 Nov 2001 17:25:56 +0000
Subject: cvs: php4 /ext/sockets php_sockets.h sockets.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8048@lists.php.net to get a copy of this message
dbeu Thu Nov 1 12:25:56 2001 EDT Modified files: /php4/ext/sockets php_sockets.h sockets.c Log: make this function static Index: php4/ext/sockets/php_sockets.h diff -u php4/ext/sockets/php_sockets.h:1.14 php4/ext/sockets/php_sockets.h:1.15 --- php4/ext/sockets/php_sockets.h:1.14 Thu Nov 1 11:51:59 2001 +++ php4/ext/sockets/php_sockets.h Thu Nov 1 12:25:56 2001 @@ -22,7 +22,7 @@ #ifndef PHP_SOCKETS_H #define PHP_SOCKETS_H -/* $Id: php_sockets.h,v 1.14 2001/11/01 16:51:59 dbeu Exp $ */ +/* $Id: php_sockets.h,v 1.15 2001/11/01 17:25:56 dbeu Exp $ */ #if HAVE_SOCKETS @@ -106,10 +106,6 @@ typedef struct { zend_bool use_system_read; } php_sockets_globals; - -int php_read(int bsd_socket, void *buf, int maxlen); -char *php_strerror(int error); - #ifdef ZTS #define SOCKETSG(v) (sockets_globals->v) Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.73 php4/ext/sockets/sockets.c:1.74 --- php4/ext/sockets/sockets.c:1.73 Thu Nov 1 11:51:59 2001 +++ php4/ext/sockets/sockets.c Thu Nov 1 12:25:56 2001 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sockets.c,v 1.73 2001/11/01 16:51:59 dbeu Exp $ */ +/* $Id: sockets.c,v 1.74 2001/11/01 17:25:56 dbeu Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -205,6 +205,8 @@ efree(php_sock); } +static char *php_strerror(int error); + int open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC) { struct sockaddr_in la; @@ -333,7 +335,7 @@ } /* }}} */ -char *php_strerror(int error) { +static char *php_strerror(int error) { const char *buf; #ifndef PHP_WIN32

« previous php.cvs (#8048) next »