shithub: choc

Download patch

ref: 49e269d53ab07d0ba4d6751a06483d77d85f912e
parent: 64572eb29425574c4ddf54c753aa7a6dc2a50ac9
author: Turo Lamminen <turotl@gmail.com>
date: Sat Mar 31 12:13:17 EDT 2018

Make M_CheckParm check parameter const

--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -65,7 +65,7 @@
     return M_CheckParm(check) != 0;
 }
 
-int M_CheckParm(char *check)
+int M_CheckParm(const char *check)
 {
     return M_CheckParmWithArgs(check, 0);
 }
--- a/src/m_argv.h
+++ b/src/m_argv.h
@@ -30,7 +30,7 @@
 
 // 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.