From: Ilia Alshanetsky Date: Wed, 28 May 2003 01:04:06 +0000 (+0000) Subject: Fixed compiler warnings. X-Git-Tag: RELEASE_1_0_2~561 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a240c6a50a4dcabdd31261f1d21370d7145df5f;p=php Fixed compiler warnings. --- diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h index fed1dda9a6..b7bc6ee310 100644 --- a/ext/sockets/php_sockets.h +++ b/ext/sockets/php_sockets.h @@ -102,10 +102,12 @@ typedef struct { } php_sockets_globals; /* Prototypes */ +#ifdef ilia_0 /* not needed, only causes a compiler warning */ static int php_open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC); static int php_accept_connect(php_socket *in_sock, php_socket **new_sock, struct sockaddr *la TSRMLS_DC); static int php_read(int bsd_socket, void *buf, size_t maxlen, int flags); static char *php_strerror(int error TSRMLS_DC); +#endif ZEND_BEGIN_MODULE_GLOBALS(sockets) int last_error; diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index f39b97566b..94186dd534 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -82,6 +82,7 @@ ZEND_DECLARE_MODULE_GLOBALS(sockets) #define PF_INET AF_INET #endif +static char *php_strerror(int error TSRMLS_DC); #define PHP_NORMAL_READ 0x0001 #define PHP_BINARY_READ 0x0002