ref: efc804dc55aabdb068dce51f05fbd04ec4aacdbe
parent: 3166cfd54ce85bdfed3c61dd5c405b4b328bff1b
author: Turo Lamminen <[email protected]>
date: Tue Jan 22 13:56:35 EST 2019
setup: Make AddCmdLineParameter format parameter const
--- a/src/setup/execute.c
+++ b/src/setup/execute.c
@@ -130,7 +130,7 @@
return result;
}
-void AddCmdLineParameter(execute_context_t *context, char *s, ...)
+void AddCmdLineParameter(execute_context_t *context, const char *s, ...)
{
va_list args;
--- a/src/setup/execute.h
+++ b/src/setup/execute.h
@@ -28,7 +28,7 @@
#define IWAD_CHEX (1 << 5) /* chex.wad */
execute_context_t *NewExecuteContext(void);
-void AddCmdLineParameter(execute_context_t *context, char *s, ...) PRINTF_ATTR(2, 3);
+void AddCmdLineParameter(execute_context_t *context, const char *s, ...) PRINTF_ATTR(2, 3);
void PassThroughArguments(execute_context_t *context);
int ExecuteDoom(execute_context_t *context);
int FindInstalledIWADs(void);