ref: 2c0921509f0972adb174d4ec5f8705328b4a2e3f
parent: d11c65d0dcfe9fddf16bbfe837bc57732eaa2cd2
author: Turo Lamminen <[email protected]>
date: Sat May 19 10:50:23 EDT 2018
dehacked: Make DEH_printf fmt parameter const
--- a/src/deh_str.c
+++ b/src/deh_str.c
@@ -385,7 +385,7 @@
// printf(), performing a replacement on the format string.
-void DEH_printf(char *fmt, ...)
+void DEH_printf(const char *fmt, ...)
{
va_list args;
const char *repl;
--- a/src/deh_str.h
+++ b/src/deh_str.h
@@ -25,7 +25,7 @@
// Used to do dehacked text substitutions throughout the program
const char *DEH_String(const char *s) PRINTF_ARG_ATTR(1);
-void DEH_printf(char *fmt, ...) PRINTF_ATTR(1, 2);
+void DEH_printf(const char *fmt, ...) PRINTF_ATTR(1, 2);
void DEH_fprintf(FILE *fstream, char *fmt, ...) PRINTF_ATTR(2, 3);
void DEH_snprintf(char *buffer, size_t len, char *fmt, ...) PRINTF_ATTR(3, 4);
void DEH_AddStringReplacement(const char *from_text, const char *to_text);