ref: 98b86be284c0d4a1a18f8b3aa9f652b779e441ea
parent: eb3531a4515a30965f8cad64ea2b03337035c98e
author: Turo Lamminen <[email protected]>
date: Sat Mar 31 13:53:30 EDT 2018
Make DEH_Warning msg parameter const
--- a/src/deh_io.c
+++ b/src/deh_io.c
@@ -302,7 +302,7 @@
return context->readbuffer;
}
-void DEH_Warning(deh_context_t *context, char *msg, ...)
+void DEH_Warning(deh_context_t *context, const char *msg, ...)
{
va_list args;
--- a/src/deh_io.h
+++ b/src/deh_io.h
@@ -26,7 +26,7 @@
int DEH_GetChar(deh_context_t *context);
char *DEH_ReadLine(deh_context_t *context, boolean extended);
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);
+void DEH_Warning(deh_context_t *context, const char *msg, ...) PRINTF_ATTR(2, 3);
boolean DEH_HadError(deh_context_t *context);
#endif /* #ifndef DEH_IO_H */