Introduce some const pointers

This commit is contained in:
Niels Dossche 2024-05-05 22:23:46 +02:00
parent 35f30b388a
commit f0f05c7923
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@
#include "phar_internal.h" #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; uint32_t num = 0;
size_t i = 0; size_t i = 0;

View file

@ -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 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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); int dtime = PHAR_GET_16(cdtime), ddate = PHAR_GET_16(cddate);
struct tm *tm, tmbuf; struct tm *tm, tmbuf;