shithub: choc

Download patch

ref: cc5a879a848c161253bf5e9d543aaff70ac38ec2
parent: 0eb2d12ecbf5ca27d5874651bebb9f3f13361aab
author: Turo Lamminen <turotl@gmail.com>
date: Tue Mar 13 16:14:45 EDT 2018

Make W_CacheLumpName name parameter const

--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -428,7 +428,7 @@
 //
 // W_CacheLumpName
 //
-void *W_CacheLumpName(char *name, int tag)
+void *W_CacheLumpName(const char *name, int tag)
 {
     return W_CacheLumpNum(W_GetNumForName(name), tag);
 }
--- a/src/w_wad.h
+++ b/src/w_wad.h
@@ -63,7 +63,7 @@
 void W_ReadLump(lumpindex_t lump, void *dest);
 
 void *W_CacheLumpNum(lumpindex_t lump, int tag);
-void *W_CacheLumpName(char *name, int tag);
+void *W_CacheLumpName(const char *name, int tag);
 
 void W_GenerateHashTable(void);