cvs: php4(PHP_4_3) /ext/sockets sockets.c
| From: | Moriyoshi Koizumi | Date: | Wed, 16 Apr 2003 19:19:14 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/sockets sockets.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20335@lists.php.net to get a copy of this message | ||
moriyoshi Wed Apr 16 15:19:14 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/sockets sockets.c
Log:
MFH(r-1.137): compiler warning fix & possible 64bit fix
Index: php4/ext/sockets/sockets.c
diff -u php4/ext/sockets/sockets.c:1.125.2.12 php4/ext/sockets/sockets.c:1.125.2.13
--- php4/ext/sockets/sockets.c:1.125.2.12 Wed Apr 16 13:32:41 2003
+++ php4/ext/sockets/sockets.c Wed Apr 16 15:19:13 2003
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sockets.c,v 1.125.2.12 2003/04/16 17:32:41 moriyoshi Exp $ */
+/* $Id: sockets.c,v 1.125.2.13 2003/04/16 19:19:13 moriyoshi Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -276,7 +276,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;