shithub: choc

Download patch

ref: 77eb05a2f9f2a531204ed08e88829683b7d124ba
parent: eb0c1ba61a7230c457442124ebbb7c6c28c9662e
author: Turo Lamminen <turotl@gmail.com>
date: Tue Mar 13 16:06:22 EDT 2018

Make W_CheckNumForName parameter const

--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -258,7 +258,7 @@
 // Returns -1 if name not found.
 //
 
-lumpindex_t W_CheckNumForName(char* name)
+lumpindex_t W_CheckNumForName(const char *name)
 {
     lumpindex_t i;
 
--- a/src/w_wad.h
+++ b/src/w_wad.h
@@ -56,7 +56,7 @@
 wad_file_t *W_AddFile(char *filename);
 void W_Reload(void);
 
-lumpindex_t W_CheckNumForName(char *name);
+lumpindex_t W_CheckNumForName(const char *name);
 lumpindex_t W_GetNumForName(char *name);
 
 int W_LumpLength(lumpindex_t lump);