mirror of
https://github.com/php/php-src.git
synced 2025-01-20 18:53:37 +08:00
Fixed compiler warnings.
This commit is contained in:
parent
d20e82daf0
commit
4a240c6a50
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user