shithub: choc

Download patch

ref: c6ce98e5b98623f9c2fd1344060882aab8ddacb6
parent: e8bd92e268002a2ed54c334b907d66f4bbf66f05
author: Turo Lamminen <[email protected]>
date: Sat May 26 12:02:14 EDT 2018

config: Make M_BindStringVariable name parameter const

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2081,7 +2081,7 @@
     variable->bound = true;
 }
 
-void M_BindStringVariable(char *name, char **location)
+void M_BindStringVariable(const char *name, char **location)
 {
     default_t *variable;
 
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -28,7 +28,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);
+void M_BindStringVariable(const char *name, char **variable);
 boolean M_SetVariable(const char *name, const char *value);
 int M_GetIntVariable(const char *name);
 const char *M_GetStringVariable(const char *name);