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/phar/util.c | |
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/phar/util.c')
-rw-r--r-- | ext/phar/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/util.c b/ext/phar/util.c index 8348a47874..38aa549f00 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -572,7 +572,7 @@ not_stream: * appended, truncated, or read. For read, if the entry is marked unmodified, it is * assumed that the file pointer, if present, is opened for reading */ -int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ +int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ { phar_archive_data *phar; phar_entry_info *entry; @@ -733,7 +733,7 @@ really_get_entry: /** * Create a new dummy file slot within a writeable phar for a newly created file */ -phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ +phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ { phar_archive_data *phar; phar_entry_info *entry, etemp; |