ref: cd852bc9d25bed934c73e965036ebd1eb5712875
parent: d73baa45d9511b1590de1bea97fadcbc201b0d13
author: Turo Lamminen <[email protected]>
date: Tue Apr 24 15:36:11 EDT 2018
doom: Fix const correctness issue in graphics load/unload callbacks
--- a/src/doom/st_stuff.c
+++ b/src/doom/st_stuff.c
@@ -1086,7 +1086,7 @@
}
-typedef void (*load_callback_t)(char *lumpname, patch_t **variable);
+typedef void (*load_callback_t)(const char *lumpname, patch_t **variable);
// Iterates through all graphics to be loaded or unloaded, along with
// the variable they use, invoking the specified callback function.
@@ -1177,7 +1177,7 @@
++facenum;
}
-static void ST_loadCallback(char *lumpname, patch_t **variable)
+static void ST_loadCallback(const char *lumpname, patch_t **variable)
{
*variable = W_CacheLumpName(lumpname, PU_STATIC);
}
@@ -1193,7 +1193,7 @@
ST_loadGraphics();
}
-static void ST_unloadCallback(char *lumpname, patch_t **variable)
+static void ST_unloadCallback(const char *lumpname, patch_t **variable)
{
W_ReleaseLumpName(lumpname);
*variable = NULL;