shithub: choc

Download patch

ref: 68344f39c4d6a6072c0d5e2b79cf53bb6958b239
parent: 53ff14ac6b792bda5b228bd4616bbbb5f3774125
author: Turo Lamminen <turotl@gmail.com>
date: Sat May 26 12:06:51 EDT 2018

config: Make M_SaveDefaultsAlternate main and extra parameters const

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -1949,7 +1949,7 @@
 // Save defaults to alternate filenames
 //
 
-void M_SaveDefaultsAlternate(char *main, char *extra)
+void M_SaveDefaultsAlternate(const char *main, const char *extra)
 {
     const char *orig_main;
     const char *orig_extra;
--- a/src/m_config.h
+++ b/src/m_config.h
@@ -24,7 +24,7 @@
 
 void M_LoadDefaults(void);
 void M_SaveDefaults(void);
-void M_SaveDefaultsAlternate(char *main, char *extra);
+void M_SaveDefaultsAlternate(const char *main, const char *extra);
 void M_SetConfigDir(const char *dir);
 void M_BindIntVariable(const char *name, int *variable);
 void M_BindFloatVariable(const char *name, float *variable);