commit 93fb29c19b1504f3239a65f034161309cc39f78a
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Thu Mar 1 20:05:37 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 12:31:51 2018 +0200
Make I_Error format string parameter const
---
src/i_system.c | 2 +-
src/i_system.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/i_system.c b/src/i_system.c
index ad60dc46..60a6f64c 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -260,7 +260,7 @@ void I_Quit (void)
static boolean already_quitting = false;
-void I_Error (char *error, ...)
+void I_Error (const char *error, ...)
{
char msgbuf[512];
va_list argptr;
diff --git a/src/i_system.h b/src/i_system.h
index 1b023d17..141d03f1 100644
--- a/src/i_system.h
+++ b/src/i_system.h
@@ -52,7 +52,7 @@ ticcmd_t* I_BaseTiccmd (void);
// Clean exit, displays sell blurb.
void I_Quit (void);
-void I_Error (char *error, ...) PRINTF_ATTR(1, 2);
+void I_Error (const char *error, ...) PRINTF_ATTR(1, 2);
void I_Tactile (int on, int off, int total);