shithub: choc

Download patch

ref: 5621630f2fe88323d33e97335df67cd53f0f0b01
parent: 258ef0701e3a2119026a3afc99dd810f6aedc241
author: Turo Lamminen <[email protected]>
date: Sat Aug 28 13:03:30 EDT 2021

strife: Fix const correctness issues in dstrings.cpp

--- a/src/strife/dstrings.c
+++ b/src/strife/dstrings.c
@@ -20,7 +20,7 @@
 
 #include "dstrings.h"
 
-char *doom1_endmsg[] =
+const char *doom1_endmsg[] =
 {
   "are you sure you want to\nquit this great game?",
   "please don't leave, there's more\ndemons to toast!",
@@ -32,7 +32,7 @@
   "go ahead and leave. see if i care.",
 };
 
-char *doom2_endmsg[] =
+const char *doom2_endmsg[] =
 {
   // QuitDOOM II messages
   "are you sure you want to\nquit this great game?",
--- a/src/strife/dstrings.h
+++ b/src/strife/dstrings.h
@@ -34,8 +34,8 @@
 // 8 per each game type
 #define NUM_QUITMESSAGES   8
 
-extern char *doom1_endmsg[];
-extern char *doom2_endmsg[];
+extern const char *doom1_endmsg[];
+extern const char *doom2_endmsg[];
 
 
 #endif