]> granicus.if.org Git - php/commitdiff
Fixed compiler warnings.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 28 May 2003 01:04:06 +0000 (01:04 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 28 May 2003 01:04:06 +0000 (01:04 +0000)
ext/sockets/php_sockets.h
ext/sockets/sockets.c

index fed1dda9a6b3a6df2f564aacaaa8e6f268ad956d..b7bc6ee3101fbffc7a7fb600eade6f08aa241c79 100644 (file)
@@ -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;
index f39b97566b5c5b6c06867704e65742ee021f9e42..94186dd53403a978bb4d868865df5735f1f2f714 100644 (file)
@@ -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