From f0f05c79237ecb4996bb290e15ee6f159bfcdebe Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sun, 5 May 2024 22:23:46 +0200 Subject: [PATCH] Introduce some const pointers --- ext/phar/tar.c | 2 +- ext/phar/zip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/phar/tar.c b/ext/phar/tar.c index 17e09ae4cff..0b1de03c33f 100644 --- a/ext/phar/tar.c +++ b/ext/phar/tar.c @@ -19,7 +19,7 @@ #include "phar_internal.h" -static uint32_t phar_tar_number(char *buf, size_t len) /* {{{ */ +static uint32_t phar_tar_number(const char *buf, size_t len) /* {{{ */ { uint32_t num = 0; size_t i = 0; diff --git a/ext/phar/zip.c b/ext/phar/zip.c index db45a0c576e..f7d927b62a3 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -150,7 +150,7 @@ static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, uint16 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -static time_t phar_zip_d2u_time(char *cdtime, char *cddate) /* {{{ */ +static time_t phar_zip_d2u_time(const char *cdtime, const char *cddate) /* {{{ */ { int dtime = PHAR_GET_16(cdtime), ddate = PHAR_GET_16(cddate); struct tm *tm, tmbuf;