diff options
author | Andrey Hristov <andrey@php.net> | 2013-07-30 12:49:36 +0200 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2013-07-30 12:49:36 +0200 |
commit | 92d27ccb0574f901a107409a7fec92888fa2b82f (patch) | |
tree | ffc98232c24bc4d6306bd7cb98d06e0320287910 /ext/bz2/php_bz2.h | |
parent | 5e1ac558c3354f98a9a5aecb5b518c46cd55357a (diff) | |
download | php-git-92d27ccb0574f901a107409a7fec92888fa2b82f.tar.gz |
Constify streams API and a few other calls down the rabbit hole.
(`char *` to `const char *` for parameters and few return values)
In a few places int len moved to size_t len.
Diffstat (limited to 'ext/bz2/php_bz2.h')
-rw-r--r-- | ext/bz2/php_bz2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bz2/php_bz2.h b/ext/bz2/php_bz2.h index 8b12eca357..7bcffc1831 100644 --- a/ext/bz2/php_bz2.h +++ b/ext/bz2/php_bz2.h @@ -47,8 +47,8 @@ extern zend_module_entry bz2_module_entry; # define PHP_BZ2_API #endif -PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); -PHP_BZ2_API php_stream *_php_stream_bz2open_from_BZFILE(BZFILE *bz, char *mode, php_stream *innerstream STREAMS_DC TSRMLS_DC); +PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); +PHP_BZ2_API php_stream *_php_stream_bz2open_from_BZFILE(BZFILE *bz, const char *mode, php_stream *innerstream STREAMS_DC TSRMLS_DC); #define php_stream_bz2open_from_BZFILE(bz, mode, innerstream) _php_stream_bz2open_from_BZFILE((bz), (mode), (innerstream) STREAMS_CC TSRMLS_CC) #define php_stream_bz2open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper), (path), (mode), (options), (opened_path), NULL STREAMS_CC TSRMLS_CC) |