iliaa           Tue May 27 21:04:06 2003 EDT

  Modified files:              
    /php4/ext/sockets   php_sockets.h sockets.c 
  Log:
  Fixed compiler warnings.
  
  
Index: php4/ext/sockets/php_sockets.h
diff -u php4/ext/sockets/php_sockets.h:1.29 php4/ext/sockets/php_sockets.h:1.30
--- php4/ext/sockets/php_sockets.h:1.29 Thu Apr 17 19:18:58 2003
+++ php4/ext/sockets/php_sockets.h      Tue May 27 21:04:06 2003
@@ -22,7 +22,7 @@
 #ifndef PHP_SOCKETS_H
 #define PHP_SOCKETS_H
 
-/* $Id: php_sockets.h,v 1.29 2003/04/17 23:18:58 sniper Exp $ */
+/* $Id: php_sockets.h,v 1.30 2003/05/28 01:04:06 iliaa Exp $ */
 
 #if HAVE_SOCKETS
 
@@ -102,10 +102,12 @@
 } 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: php4/ext/sockets/sockets.c
diff -u php4/ext/sockets/sockets.c:1.140 php4/ext/sockets/sockets.c:1.141
--- php4/ext/sockets/sockets.c:1.140    Fri Apr 25 04:10:11 2003
+++ php4/ext/sockets/sockets.c  Tue May 27 21:04:06 2003
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: sockets.c,v 1.140 2003/04/25 08:10:11 sniper Exp $ */
+/* $Id: sockets.c,v 1.141 2003/05/28 01:04:06 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -82,6 +82,7 @@
 #define PF_INET AF_INET
 #endif
 
+static char *php_strerror(int error TSRMLS_DC);
 
 #define PHP_NORMAL_READ 0x0001
 #define PHP_BINARY_READ 0x0002



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to