Skip to content

Commit f0f05c7

Browse files
committed
Introduce some const pointers
1 parent 35f30b3 commit f0f05c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/phar/tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "phar_internal.h"
2121

22-
static uint32_t phar_tar_number(char *buf, size_t len) /* {{{ */
22+
static uint32_t phar_tar_number(const char *buf, size_t len) /* {{{ */
2323
{
2424
uint32_t num = 0;
2525
size_t i = 0;

ext/phar/zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, uint16
150150
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
151151
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
152152
*/
153-
static time_t phar_zip_d2u_time(char *cdtime, char *cddate) /* {{{ */
153+
static time_t phar_zip_d2u_time(const char *cdtime, const char *cddate) /* {{{ */
154154
{
155155
int dtime = PHAR_GET_16(cdtime), ddate = PHAR_GET_16(cddate);
156156
struct tm *tm, tmbuf;

0 commit comments

Comments
 (0)