ref: 12a476c97367c7c91623255390f239ca215f0b6f
parent: f23ecf2e6caefd779ccb699aaf74e0e794a191b1
author: Turo Lamminen <turotl@gmail.com>
date: Sat May 26 11:51:56 EDT 2018
config: Make M_GetStringVariable parameter const
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2128,7 +2128,7 @@
return *variable->location.i;
}
-const char *M_GetStringVariable(char *name)
+const char *M_GetStringVariable(const char *name)
{
default_t *variable;
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -31,7 +31,7 @@
void M_BindStringVariable(char *name, char **variable);
boolean M_SetVariable(char *name, char *value);
int M_GetIntVariable(char *name);
-const char *M_GetStringVariable(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);
char *M_GetSaveGameDir(const char *iwadname);