shithub: choc

Download patch

ref: c5d8067d38e0c356677eb996cc09dd45a580b52d
parent: 8f82960fbef90ff0fbe6606d43d862dd8735843b
author: Turo Lamminen <[email protected]>
date: Tue Jan 22 14:26:59 EST 2019

setup: Make mission_config_t string members const

--- a/src/setup/mode.c
+++ b/src/setup/mode.c
@@ -44,13 +44,13 @@
 
 typedef struct
 {
-    char *label;
+    const char *label;
     GameMission_t mission;
     int mask;
-    char *name;
-    char *config_file;
-    char *extra_config_file;
-    char *executable;
+    const char *name;
+    const char *config_file;
+    const char *extra_config_file;
+    const char *executable;
 } mission_config_t;
 
 // Default mission to fall back on, if no IWADs are found at all: