diff options
-rw-r--r-- | ext/sockets/sockets.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index ecd8c706b4..672e10430f 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -275,7 +275,8 @@ int accept_connect(php_socket *in_sock, php_socket **new_sock, struct sockaddr * /* {{{ php_read -- wrapper around read() so that it only reads to a \r or \n. */ int php_read(int bsd_socket, void *buf, size_t maxlen, int flags) { - int m = 0, n = 0; + int m = 0; + size_t n = 0; int no_read = 0; int nonblock = 0; char *t = (char *) buf; |