cvs: php4 /ext/sockets sockets.c
| From: | Moriyoshi Koizumi | Date: | Wed, 16 Apr 2003 19:18:35 +0000 |
| Subject: | cvs: php4 /ext/sockets sockets.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20334@lists.php.net to get a copy of this message | ||
moriyoshi Wed Apr 16 15:18:35 2003 EDT
Modified files:
/php4/ext/sockets sockets.c
Log:
compiler warning fix and possible 64bit fix
Index: php4/ext/sockets/sockets.c
diff -u php4/ext/sockets/sockets.c:1.136 php4/ext/sockets/sockets.c:1.137
--- php4/ext/sockets/sockets.c:1.136 Wed Apr 16 13:31:31 2003
+++ php4/ext/sockets/sockets.c Wed Apr 16 15:18:35 2003
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sockets.c,v 1.136 2003/04/16 17:31:31 moriyoshi Exp $ */
+/* $Id: sockets.c,v 1.137 2003/04/16 19:18:35 moriyoshi Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -275,7 +275,8 @@
/* {{{ 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;