foxygit / doom Log in
commit 5621630f2fe88323d33e97335df67cd53f0f0b01
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Sat Aug 28 17:03:30 2021 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Sat Aug 28 17:03:30 2021 +0300

    strife: Fix const correctness issues in dstrings.cpp
---
 src/strife/dstrings.c | 4 ++--
 src/strife/dstrings.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/strife/dstrings.c b/src/strife/dstrings.c
index b87f198b..86433ab2 100644
--- 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 @@ char *doom1_endmsg[] =
   "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?",
diff --git a/src/strife/dstrings.h b/src/strife/dstrings.h
index d3240b49..81115792 100644
--- 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