shithub: choc

Download patch

ref: 6e76f031a17f4067a89d00657659c27b2741616d
parent: fc6d7daf3a31c73a223724df94fa57578f52b0af
author: Turo Lamminen <turotl@gmail.com>
date: Thu Mar 1 15:30:51 EST 2018

dehacked: Make NextFormatArgument and ValidFormatReplacement parameters const

--- a/src/deh_str.c
+++ b/src/deh_str.c
@@ -251,7 +251,7 @@
 // Given the specified string, get the type of the first format
 // string encountered.
 
-static format_arg_t NextFormatArgument(char **str)
+static format_arg_t NextFormatArgument(const char **str)
 {
     format_arg_t argtype;
 
@@ -326,10 +326,10 @@
 
 // Return true if the specified string contains no format arguments.
 
-static boolean ValidFormatReplacement(char *original, char *replacement)
+static boolean ValidFormatReplacement(const char *original, const char *replacement)
 {
-    char *rover1;
-    char *rover2;
+    const char *rover1;
+    const char *rover2;
     int argtype1, argtype2;
 
     // Check each argument in turn and compare types.