summaryrefslogtreecommitdiff
path: root/ext/sockets/sockets.c
diff options
context:
space:
mode:
authorDaniel Beulshausen <dbeu@php.net>2001-11-01 17:25:56 +0000
committerDaniel Beulshausen <dbeu@php.net>2001-11-01 17:25:56 +0000
commitd0433b6d1c0346eb82bbc1da53f48a2af08ba006 (patch)
tree2459ac68a081396845067680c6d4ce5163cbc5d0 /ext/sockets/sockets.c
parent2fba0362020fcbf73e37e5c7b79a04da8e3dc418 (diff)
downloadphp-git-d0433b6d1c0346eb82bbc1da53f48a2af08ba006.tar.gz
make this function static
Diffstat (limited to 'ext/sockets/sockets.c')
-rw-r--r--ext/sockets/sockets.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 4a4c2a1a4c..e74c52aae2 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -205,6 +205,8 @@ static void destroy_socket(zend_rsrc_list_entry *rsrc TSRMLS_DC)
efree(php_sock);
}
+static char *php_strerror(int error);
+
int open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC)
{
struct sockaddr_in la;
@@ -333,7 +335,7 @@ int php_read(int bsd_socket, void *buf, int maxlen)
}
/* }}} */
-char *php_strerror(int error) {
+static char *php_strerror(int error) {
const char *buf;
#ifndef PHP_WIN32