Skip to content

Commit 51bb8cf

Browse files
committed
ext/phar: Add some const qualifiers
1 parent 6f98683 commit 51bb8cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/phar/phar_internal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,23 +331,23 @@ struct _phar_entry_fp {
331331
phar_entry_fp_info *manifest;
332332
};
333333

334-
static inline php_stream *phar_get_entrypfp(phar_entry_info *entry)
334+
static inline php_stream *phar_get_entrypfp(const phar_entry_info *entry)
335335
{
336336
if (!entry->is_persistent) {
337337
return entry->phar->fp;
338338
}
339339
return PHAR_G(cached_fp)[entry->phar->phar_pos].fp;
340340
}
341341

342-
static inline php_stream *phar_get_pharfp(phar_archive_data *phar)
342+
static inline php_stream *phar_get_pharfp(const phar_archive_data *phar)
343343
{
344344
if (!phar->is_persistent) {
345345
return phar->fp;
346346
}
347347
return PHAR_G(cached_fp)[phar->phar_pos].fp;
348348
}
349349

350-
static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry)
350+
static inline enum phar_fp_type phar_get_fp_type(const phar_entry_info *entry)
351351
{
352352
if (!entry->is_persistent) {
353353
return entry->fp_type;

0 commit comments

Comments
 (0)