shithub: choc

Download patch

ref: eb0c1ba61a7230c457442124ebbb7c6c28c9662e
parent: aacff41c26a3130bde300ea5c184497379e03af8
author: Turo Lamminen <[email protected]>
date: Tue Mar 13 16:02:43 EDT 2018

Make Z_ChangeTag2 file parameter const

--- a/src/z_native.c
+++ b/src/z_native.c
@@ -442,7 +442,7 @@
 // Z_ChangeTag
 //
 
-void Z_ChangeTag2(void *ptr, int tag, char *file, int line)
+void Z_ChangeTag2(void *ptr, int tag, const char *file, int line)
 {
     memblock_t*	block;
 	
--- a/src/z_zone.c
+++ b/src/z_zone.c
@@ -490,7 +490,7 @@
 //
 // Z_ChangeTag
 //
-void Z_ChangeTag2(void *ptr, int tag, char *file, int line)
+void Z_ChangeTag2(void *ptr, int tag, const char *file, int line)
 {
     memblock_t*	block;
 	
--- a/src/z_zone.h
+++ b/src/z_zone.h
@@ -57,7 +57,7 @@
 void    Z_DumpHeap (int lowtag, int hightag);
 void    Z_FileDumpHeap (FILE *f);
 void    Z_CheckHeap (void);
-void    Z_ChangeTag2 (void *ptr, int tag, char *file, int line);
+void    Z_ChangeTag2 (void *ptr, int tag, const char *file, int line);
 void    Z_ChangeUser(void *ptr, void **user);
 int     Z_FreeMemory (void);
 unsigned int Z_ZoneSize(void);