Fixed compiler warnings.

This commit is contained in:
Ilia Alshanetsky 2003-05-28 01:04:06 +00:00
parent d20e82daf0
commit 4a240c6a50
2 changed files with 3 additions and 0 deletions

View 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;

View 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