commit 5b1475ee9a2e9cd9bff536b26edd628b293c6ac0
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat May 26 15:54:51 2018 +0300
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Sat May 26 16:24:04 2018 +0300
config: Make M_SetVariable name parameter const
---
src/m_config.c | 2 +-
src/m_config.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/m_config.c b/src/m_config.c
index d600bc91..a6afd5c3 100644
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2095,7 +2095,7 @@ void M_BindStringVariable(char *name, char **location)
// Set the value of a particular variable; an API function for other
// parts of the program to assign values to config variables by name.
-boolean M_SetVariable(char *name, char *value)
+boolean M_SetVariable(const char *name, char *value)
{
default_t *variable;
diff --git a/src/m_config.h b/src/m_config.h
index da040f10..038cd1bc 100644
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -29,7 +29,7 @@ void M_SetConfigDir(const char *dir);
void M_BindIntVariable(char *name, int *variable);
void M_BindFloatVariable(char *name, float *variable);
void M_BindStringVariable(char *name, char **variable);
-boolean M_SetVariable(char *name, char *value);
+boolean M_SetVariable(const char *name, char *value);
int M_GetIntVariable(const char *name);
const char *M_GetStringVariable(const char *name);
float M_GetFloatVariable(const char *name);