cvs: php4 /ext/standard filestat.c
| From: | Andi Gutmans | Date: | Wed, 25 Apr 2001 05:43:31 +0000 |
| Subject: | cvs: php4 /ext/standard filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5249@lists.php.net to get a copy of this message | ||
andi Tue Apr 24 22:43:31 2001 EDT
Modified files:
/php4/ext/standard filestat.c
Log:
- Nuke warning. This signed/unsigned stuff gets really annoying sometimes.
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.58 php4/ext/standard/filestat.c:1.59
--- php4/ext/standard/filestat.c:1.58 Tue Apr 24 21:22:29 2001
+++ php4/ext/standard/filestat.c Tue Apr 24 22:43:30 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.58 2001/04/25 04:22:29 andi Exp $ */
+/* $Id: filestat.c,v 1.59 2001/04/25 05:43:30 andi Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -447,7 +447,7 @@
/* }}} */
-static void php_stat(const char *filename, int filename_length, int type, pval *return_value)
+static void php_stat(const char *filename, php_stat_len filename_length, int type, pval
*return_value)
{
struct stat *stat_sb;
int rmask=S_IROTH,wmask=S_IWOTH,xmask=S_IXOTH; /* access rights defaults to other */
@@ -637,7 +637,7 @@
WRONG_PARAM_COUNT; \
} \
convert_to_string_ex(filename); \
- php_stat(Z_STRVAL_PP(filename), Z_STRLEN_PP(filename), funcnum, return_value); \
+ php_stat(Z_STRVAL_PP(filename), (php_stat_len) Z_STRLEN_PP(filename), funcnum, return_value); \
}
/* {{{ proto int fileperms(string filename)