foxygit / doom Log in
commit 062e8870ff0803932cce856c73bc4a9fd5d697eb
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Aug 7 18:26:34 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Aug 7 18:45:11 2018 +0300

    hexen: Fix constness issue between SC_MatchString, SC_MustMatchString and MapCmdNames
---
 src/hexen/h2def.h   | 4 ++--
 src/hexen/p_setup.c | 2 +-
 src/hexen/sc_man.c  | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/hexen/h2def.h b/src/hexen/h2def.h
index e0de7d6f..2ac1b38a 100644
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -916,8 +916,8 @@ void SC_MustGetNumber(void);
 void SC_UnGet(void);
 //boolean SC_Check(void);
 boolean SC_Compare(const char *text);
-int SC_MatchString(char **strings);
-int SC_MustMatchString(char **strings);
+int SC_MatchString(const char **strings);
+int SC_MustMatchString(const char **strings);
 void SC_ScriptError(const char *message);

 extern char *sc_String;
diff --git a/src/hexen/p_setup.c b/src/hexen/p_setup.c
index f24fb34e..245db4bf 100644
--- a/src/hexen/p_setup.c
+++ b/src/hexen/p_setup.c
@@ -113,7 +113,7 @@ byte *rejectmatrix;             // for fast sight rejection
 // PRIVATE DATA DEFINITIONS ------------------------------------------------

 static mapInfo_t MapInfo[99];
-static char *MapCmdNames[] = {
+static const char *MapCmdNames[] = {
     "SKY1",
     "SKY2",
     "DOUBLESKY",
diff --git a/src/hexen/sc_man.c b/src/hexen/sc_man.c
index 4d14dc6c..5412bcc2 100644
--- a/src/hexen/sc_man.c
+++ b/src/hexen/sc_man.c
@@ -393,7 +393,7 @@ boolean SC_Check(void)
 //
 //==========================================================================

-int SC_MatchString(char **strings)
+int SC_MatchString(const char **strings)
 {
     int i;

@@ -413,7 +413,7 @@ int SC_MatchString(char **strings)
 //
 //==========================================================================

-int SC_MustMatchString(char **strings)
+int SC_MustMatchString(const char **strings)
 {
     int i;