foxygit / doom Log in
commit fe634ea57e1603db6f7027273cd04f78de7eede9
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue May 15 18:40:56 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue May 15 18:40:56 2018 +0300

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

diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 4716dda8..72355b20 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -751,7 +751,7 @@ void R_DrawTopBorder(void);
 void R_SetViewSize(int blocks, int detail);
 // called by M_Responder

-int R_FlatNumForName(char *name);
+int R_FlatNumForName(const char *name);

 int R_TextureNumForName(const char *name);
 int R_CheckTextureNumForName(const char *name);
diff --git a/src/heretic/r_data.c b/src/heretic/r_data.c
index 8865f7a5..0f31817c 100644
--- a/src/heretic/r_data.c
+++ b/src/heretic/r_data.c
@@ -571,7 +571,7 @@ void R_InitData(void)
 ================
 */

-int R_FlatNumForName(char *name)
+int R_FlatNumForName(const char *name)
 {
     int i;
     char namet[9];