shithub: choc

Download patch

ref: b0b963236185d99de7811f91f0b41727d0db48ab
parent: 12a476c97367c7c91623255390f239ca215f0b6f
author: Turo Lamminen <[email protected]>
date: Sat May 26 11:53:10 EDT 2018

config: Make M_GetIntVariable parameter const

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2113,7 +2113,7 @@
 
 // Get the value of a variable.
 
-int M_GetIntVariable(char *name)
+int M_GetIntVariable(const char *name)
 {
     default_t *variable;
 
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -30,7 +30,7 @@
 void M_BindFloatVariable(char *name, float *variable);
 void M_BindStringVariable(char *name, char **variable);
 boolean M_SetVariable(char *name, char *value);
-int M_GetIntVariable(char *name);
+int M_GetIntVariable(const char *name);
 const char *M_GetStringVariable(const char *name);
 float M_GetFloatVariable(const char *name);
 void M_SetConfigFilenames(const char *main_config, const char *extra_config);