com php-src: Fixed wrong parameter type of php_stream_mmap _range(): main/streams/mmap.c main/streams/php_ stream_mmap.h

From: Date: Wed, 04 Mar 2015 03:28:14 +0000
Subject: com php-src: Fixed wrong parameter type of php_stream_mmap _range(): main/streams/mmap.c main/streams/php_ stream_mmap.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85242@lists.php.net to get a copy of this message
Commit: 98766e63751a29ec4ffd416d6fc5f0143fcd9d99 Author: Reeze Xia <reeze@php.net> Wed, 4 Mar 2015 11:28:14 +0800 Parents: 2fa4d1d88bfdf0186cf448294cfaa45636edfdb3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=98766e63751a29ec4ffd416d6fc5f0143fcd9d99 Log: Fixed wrong parameter type of php_stream_mmap_range() There are several warings about this. The mode type should be php_stream_mmap_access_t but not php_stream_mmap_operate_t Changed paths: M main/streams/mmap.c M main/streams/php_stream_mmap.h Diff: diff --git a/main/streams/mmap.c b/main/streams/mmap.c index 4c9316f..04427ed 100644 --- a/main/streams/mmap.c +++ b/main/streams/mmap.c @@ -22,7 +22,7 @@ #include "php.h" #include "php_streams_int..h" -PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len) +PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len) { php_stream_mmap_range range; diff --git a/main/streams/php_stream_mmap.h b/main/streams/php_stream_mmap.h index 009cd1f..e912a55 100644 --- a/main/streams/php_stream_mmap.h +++ b/main/streams/php_stream_mmap.h @@ -67,7 +67,7 @@ typedef struct { #define php_stream_mmap_possible(stream) (!php_stream_is_filtered((stream)) && php_stream_mmap_supported((stream))) BEGIN_EXTERN_C() -PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len); +PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len); #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len)) /* un-maps the last mapped range */

« previous php.cvs (#85242) next »