cvs: php4(PHP_4_2_0) /sapi/apache2filter php_functions.c sapi_apache2.c
| From: | Sterling Hughes | Date: | Tue, 09 Apr 2002 06:13:01 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /sapi/apache2filter php_functions.c sapi_apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10983@lists.php.net to get a copy of this message | ||
sterling Tue Apr 9 02:13:01 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/sapi/apache2filter php_functions.c sapi_apache2.c
Log:
fix compile warnings
Index: php4/sapi/apache2filter/php_functions.c
diff -u php4/sapi/apache2filter/php_functions.c:1.20 php4/sapi/apache2filter/php_functions.c:1.21
--- php4/sapi/apache2filter/php_functions.c:1.20 Thu Feb 28 07:10:36 2002
+++ php4/sapi/apache2filter/php_functions.c Tue Apr 9 02:13:00 2002
@@ -88,8 +88,8 @@
ADD_STRING(the_request);
ADD_STRING(status_line);
ADD_STRING(method);
- ADD_LONG(mtime);
- ADD_LONG(clength);
+ ADD_LONG((long) mtime);
+ ADD_LONG((long) clength);
ADD_STRING(boundary);
ADD_STRING(range);
ADD_LONG(chunked);
Index: php4/sapi/apache2filter/sapi_apache2.c
diff -u php4/sapi/apache2filter/sapi_apache2.c:1.61.2.2
php4/sapi/apache2filter/sapi_apache2.c:1.61.2.3
--- php4/sapi/apache2filter/sapi_apache2.c:1.61.2.2 Fri Apr 5 16:23:30 2002
+++ php4/sapi/apache2filter/sapi_apache2.c Tue Apr 9 02:13:00 2002
@@ -118,7 +118,7 @@
php_struct *ctx = SG(server_context);
to_read = ctx->post_len - ctx->post_idx;
- n = MIN(to_read, count_bytes);
+ n = MIN(to_read, (int) count_bytes);
if (n > 0) {
memcpy(buf, ctx->post_data + ctx->post_idx, n);