ref: eb3531a4515a30965f8cad64ea2b03337035c98e
parent: b9107f377cb5a617655db82fa01e05b90325250a
author: Turo Lamminen <[email protected]>
date: Sat Mar 31 13:52:33 EDT 2018
Make DEH_Error msg parameter const
--- a/src/deh_io.c
+++ b/src/deh_io.c
@@ -315,7 +315,7 @@
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;
--- a/src/deh_io.h
+++ b/src/deh_io.h
@@ -25,7 +25,7 @@
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);