shithub: choc

Download patch

ref: 0eb2d12ecbf5ca27d5874651bebb9f3f13361aab
parent: 77eb05a2f9f2a531204ed08e88829683b7d124ba
author: Turo Lamminen <[email protected]>
date: Tue Mar 13 16:10:45 EDT 2018

Make W_GetNumForName parameter const

--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -307,7 +307,7 @@
 // W_GetNumForName
 // Calls W_CheckNumForName, but bombs out if not found.
 //
-lumpindex_t W_GetNumForName(char* name)
+lumpindex_t W_GetNumForName(const char *name)
 {
     lumpindex_t i;
 
--- a/src/w_wad.h
+++ b/src/w_wad.h
@@ -57,7 +57,7 @@
 void W_Reload(void);
 
 lumpindex_t W_CheckNumForName(const char *name);
-lumpindex_t W_GetNumForName(char *name);
+lumpindex_t W_GetNumForName(const char *name);
 
 int W_LumpLength(lumpindex_t lump);
 void W_ReadLump(lumpindex_t lump, void *dest);