foxygit / doom Log in
commit e8bd92e268002a2ed54c334b907d66f4bbf66f05
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat May 26 16:00:47 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat May 26 16:24:04 2018 +0300

    config: Make M_SetVariable value 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 3474c11e..386044c3 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(const char *name, char *value)
+boolean M_SetVariable(const char *name, const char *value)
 {
     default_t *variable;

diff --git a/src/m_config.h b/src/m_config.h
index 038cd1bc..c0018c0e 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(const char *name, char *value);
+boolean M_SetVariable(const char *name, const char *value);
 int M_GetIntVariable(const char *name);
 const char *M_GetStringVariable(const char *name);
 float M_GetFloatVariable(const char *name);