ref: e8bd92e268002a2ed54c334b907d66f4bbf66f05
parent: 79a36975024ac3e7d7e515a495cd7e65ef905b45
author: Turo Lamminen <[email protected]>
date: Sat May 26 12:00:47 EDT 2018
config: Make M_SetVariable value 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(const char *name, char *value)
+boolean M_SetVariable(const char *name, const 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(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);