commit 49e269d53ab07d0ba4d6751a06483d77d85f912e
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Mar 31 16:13:17 2018 +0300
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Mar 31 16:13:17 2018 +0300
Make M_CheckParm check parameter const
---
src/m_argv.c | 2 +-
src/m_argv.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/m_argv.c b/src/m_argv.c
index 2b3de858..955dd3b6 100644
--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -65,7 +65,7 @@ boolean M_ParmExists(char *check)
return M_CheckParm(check) != 0;
}
-int M_CheckParm(char *check)
+int M_CheckParm(const char *check)
{
return M_CheckParmWithArgs(check, 0);
}
diff --git a/src/m_argv.h b/src/m_argv.h
index d9f498dd..d922e686 100644
--- a/src/m_argv.h
+++ b/src/m_argv.h
@@ -30,7 +30,7 @@ extern char** myargv;
// Returns the position of the given parameter
// in the arg list (0 if not found).
-int M_CheckParm (char* check);
+int M_CheckParm (const char* check);
// Same as M_CheckParm, but checks that num_args arguments are available
// following the specified argument.