shithub: choc

Download patch

ref: 1c122253512d82c9b2d559f670e0902e5da31af7
parent: d75e0f6b683a5865f36893edc1c7d9c9d4d66a89
author: Turo Lamminen <[email protected]>
date: Sat May 26 12:04:16 EDT 2018

config: Make M_BindIntVariable name parameter const

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2057,7 +2057,7 @@
 // Bind a variable to a given configuration file variable, by name.
 //
 
-void M_BindIntVariable(char *name, int *location)
+void M_BindIntVariable(const char *name, int *location)
 {
     default_t *variable;
 
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -26,7 +26,7 @@
 void M_SaveDefaults(void);
 void M_SaveDefaultsAlternate(char *main, char *extra);
 void M_SetConfigDir(const char *dir);
-void M_BindIntVariable(char *name, int *variable);
+void M_BindIntVariable(const char *name, int *variable);
 void M_BindFloatVariable(const char *name, float *variable);
 void M_BindStringVariable(const char *name, char **variable);
 boolean M_SetVariable(const char *name, const char *value);