shithub: choc

Download patch

ref: 64572eb29425574c4ddf54c753aa7a6dc2a50ac9
parent: dea5c738f2bca0d235cdee1da5132eb62971d5f6
author: Turo Lamminen <[email protected]>
date: Sat Mar 31 12:08:32 EDT 2018

Make M_CheckParmWithArgs check parameter const

--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -40,7 +40,7 @@
 // or 0 if not present
 //
 
-int M_CheckParmWithArgs(char *check, int num_args)
+int M_CheckParmWithArgs(const char *check, int num_args)
 {
     int i;
 
--- a/src/m_argv.h
+++ b/src/m_argv.h
@@ -34,7 +34,7 @@
 
 // Same as M_CheckParm, but checks that num_args arguments are available
 // following the specified argument.
-int M_CheckParmWithArgs(char *check, int num_args);
+int M_CheckParmWithArgs(const char *check, int num_args);
 
 void M_FindResponseFile(void);