foxygit / doom Log in
commit eb3531a4515a30965f8cad64ea2b03337035c98e
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Mar 31 17:52:33 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Mar 31 17:52:33 2018 +0300

    Make DEH_Error msg parameter const
---
 src/deh_io.c | 2 +-
 src/deh_io.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/deh_io.c b/src/deh_io.c
index 840e2a40..2e827b4a 100644
--- a/src/deh_io.c
+++ b/src/deh_io.c
@@ -315,7 +315,7 @@ void DEH_Warning(deh_context_t *context, char *msg, ...)
     va_end(args);
 }

-void DEH_Error(deh_context_t *context, char *msg, ...)
+void DEH_Error(deh_context_t *context, const char *msg, ...)
 {
     va_list args;

diff --git a/src/deh_io.h b/src/deh_io.h
index a6ba05f1..7be552ca 100644
--- a/src/deh_io.h
+++ b/src/deh_io.h
@@ -25,7 +25,7 @@ deh_context_t *DEH_OpenLump(int lumpnum);
 void DEH_CloseFile(deh_context_t *context);
 int DEH_GetChar(deh_context_t *context);
 char *DEH_ReadLine(deh_context_t *context, boolean extended);
-void DEH_Error(deh_context_t *context, char *msg, ...) PRINTF_ATTR(2, 3);
+void DEH_Error(deh_context_t *context, const char *msg, ...) PRINTF_ATTR(2, 3);
 void DEH_Warning(deh_context_t *context, char *msg, ...) PRINTF_ATTR(2, 3);
 boolean DEH_HadError(deh_context_t *context);