commit cd852bc9d25bed934c73e965036ebd1eb5712875
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Apr 24 19:36:11 2018 +0300
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Apr 24 20:16:01 2018 +0300
doom: Fix const correctness issue in graphics load/unload callbacks
---
src/doom/st_stuff.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/doom/st_stuff.c b/src/doom/st_stuff.c
index 8227e63b..dc72f1e6 100644
--- a/src/doom/st_stuff.c
+++ b/src/doom/st_stuff.c
@@ -1086,7 +1086,7 @@ void ST_Drawer (boolean fullscreen, boolean refresh)
}
-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 @@ static void ST_loadUnloadGraphics(load_callback_t callback)
++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 @@ void ST_loadData(void)
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;