foxygit / doom Log in
commit ce5baf4b1677c9bde7c389967c04ae9d6c42e943
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat May 5 15:12:37 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat May 5 17:41:40 2018 +0300

    heretic: Make tprintf string parameter const
---
 src/heretic/d_main.c  | 2 +-
 src/heretic/doomdef.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c
index 3be39db8..75ad22a9 100644
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -611,7 +611,7 @@ static void finishStartup(void)
 }

 char tmsg[300];
-void tprintf(char *msg, int initflag)
+void tprintf(const char *msg, int initflag)
 {
     printf("%s", msg);
 }
diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index aef7d1dd..936ab45b 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -588,7 +588,7 @@ extern int vanilla_demo_limit;
 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