Skip to content

Commit f1d6391

Browse files
authored
ext/phar: mark phar_dostat() as static and mark parameters as const (#21908)
And remove unused declaration from dirstream.c file
1 parent abf1ce5 commit f1d6391

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

ext/phar/dirstream.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include "phar_internal.h"
2020
#include "dirstream.h"
2121

22-
void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, bool is_dir);
23-
2422
static const php_stream_ops phar_dir_ops = {
2523
phar_dir_write, /* write */
2624
phar_dir_read, /* read */

ext/phar/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ static int phar_stream_flush(php_stream *stream) /* {{{ */
482482
/**
483483
* stat an opened phar file handle stream, used by phar_stat()
484484
*/
485-
void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, bool is_temp_dir)
485+
static void phar_dostat(const phar_archive_data *phar, const phar_entry_info *data, php_stream_statbuf *ssb, bool is_temp_dir)
486486
{
487487
memset(ssb, 0, sizeof(php_stream_statbuf));
488488

0 commit comments

Comments
 (0)