commit f60da3ca34e7e9307170039a7e874e03e230d39a
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Apr 24 18:45:23 2018 +0300
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Apr 24 18:45:23 2018 +0300
doom: Make R_TextureNumForName parameter const
---
src/doom/r_data.c | 2 +-
src/doom/r_data.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/doom/r_data.c b/src/doom/r_data.c
index 2d2c4d67..4a452702 100644
--- a/src/doom/r_data.c
+++ b/src/doom/r_data.c
@@ -772,7 +772,7 @@ int R_CheckTextureNumForName(const char *name)
// Calls R_CheckTextureNumForName,
// aborts with error message.
//
-int R_TextureNumForName (char* name)
+int R_TextureNumForName(const char *name)
{
int i;
diff --git a/src/doom/r_data.h b/src/doom/r_data.h
index 3d5105b4..30ab1af6 100644
--- a/src/doom/r_data.h
+++ b/src/doom/r_data.h
@@ -45,7 +45,7 @@ int R_FlatNumForName(const char *name);
// Called by P_Ticker for switches and animations,
// returns the texture number for the texture name.
-int R_TextureNumForName (char *name);
+int R_TextureNumForName(const char *name);
int R_CheckTextureNumForName(const char *name);
#endif