mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user