ref: f23ecf2e6caefd779ccb699aaf74e0e794a191b1
parent: d4f69f4889ba5f7a71165a43a98cc22ed7bae71b
author: Turo Lamminen <[email protected]>
date: Sat May 26 11:51:11 EDT 2018
config: Make M_GetFloatVariable parameter const
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2143,7 +2143,7 @@
return *variable->location.s;
}
-float M_GetFloatVariable(char *name)
+float M_GetFloatVariable(const char *name)
{
default_t *variable;
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -32,7 +32,7 @@
boolean M_SetVariable(char *name, char *value);
int M_GetIntVariable(char *name);
const char *M_GetStringVariable(char *name);
-float M_GetFloatVariable(char *name);
+float M_GetFloatVariable(const char *name);
void M_SetConfigFilenames(const char *main_config, const char *extra_config);
char *M_GetSaveGameDir(const char *iwadname);