shithub: choc

Download patch

ref: d75e0f6b683a5865f36893edc1c7d9c9d4d66a89
parent: c6ce98e5b98623f9c2fd1344060882aab8ddacb6
author: Turo Lamminen <[email protected]>
date: Sat May 26 12:03:08 EDT 2018

config: Make M_BindFloatVariable name parameter const

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2070,7 +2070,7 @@
     variable->bound = true;
 }
 
-void M_BindFloatVariable(char *name, float *location)
+void M_BindFloatVariable(const char *name, float *location)
 {
     default_t *variable;
 
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -27,7 +27,7 @@
 void M_SaveDefaultsAlternate(char *main, char *extra);
 void M_SetConfigDir(const char *dir);
 void M_BindIntVariable(char *name, int *variable);
-void M_BindFloatVariable(char *name, float *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);
 int M_GetIntVariable(const char *name);