ref: ce5baf4b1677c9bde7c389967c04ae9d6c42e943
parent: 27409a729bd560485e315b51f7b6039bef8dca94
author: Turo Lamminen <[email protected]>
date: Sat May 5 11:12:37 EDT 2018
heretic: Make tprintf string parameter const
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -611,7 +611,7 @@
}
char tmsg[300];
-void tprintf(char *msg, int initflag)
+void tprintf(const char *msg, int initflag)
{
printf("%s", msg);
}
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -588,7 +588,7 @@
void D_DoomMain(void);
void IncThermo(void);
void InitThermo(int max);
-void tprintf(char *string, int initflag);
+void tprintf(const char *string, int initflag);
// not a globally visible function, just included for source reference
// calls all startup code
// parses command line options