shithub: choc

Download patch

ref: e5a7f70fa8e3b333b33de14a26dd83609372325a
parent: df7edd0a23556c0b784a15c0fac9e00a95ca0bb9
author: Turo Lamminen <turotl@gmail.com>
date: Tue May 15 14:20:56 EDT 2018

heretic: Fix const correctness issues in load/unload callbacks

--- a/src/heretic/in_lude.c
+++ b/src/heretic/in_lude.c
@@ -291,7 +291,7 @@
     }
 }
 
-static void IN_LoadUnloadPics(void (*callback)(char *lumpname,
+static void IN_LoadUnloadPics(void (*callback)(const char *lumpname,
                                                int lumpnum,
                                                patch_t **ptr))
 {
@@ -333,7 +333,7 @@
 //
 //========================================================================
 
-static void LoadLumpCallback(char *lumpname, int lumpnum, patch_t **ptr)
+static void LoadLumpCallback(const char *lumpname, int lumpnum, patch_t **ptr)
 {
     if (lumpname != NULL)
     {
@@ -360,7 +360,7 @@
 //
 //========================================================================
 
-static void UnloadLumpCallback(char *lumpname, int lumpnum, patch_t **ptr)
+static void UnloadLumpCallback(const char *lumpname, int lumpnum, patch_t **ptr)
 {
     if (lumpname != NULL)
     {