shithub: choc

Download patch

ref: 5b1475ee9a2e9cd9bff536b26edd628b293c6ac0
parent: b0b963236185d99de7811f91f0b41727d0db48ab
author: Turo Lamminen <turotl@gmail.com>
date: Sat May 26 11:54:51 EDT 2018

config: Make M_SetVariable name parameter const

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2095,7 +2095,7 @@
 // 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;
 
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -29,7 +29,7 @@
 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);