From: Moriyoshi Koizumi Date: Wed, 16 Apr 2003 19:18:35 +0000 (+0000) Subject: compiler warning fix and possible 64bit fix X-Git-Tag: RELEASE_0_5~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e15c4daffbfe35bb7aecf184ab8acd34585e9b7;p=php compiler warning fix and possible 64bit fix --- 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;