shithub: choc

Download patch

ref: bad8774dc90d1284708c9ef8769005144508ba08
parent: 7ad49f8e9413f33a2518d0c6367038482ee7e2c8
author: Turo Lamminen <turotl@gmail.com>
date: Thu Mar 1 16:29:10 EST 2018

Make DEH_AddStringReplacement parameters const

--- a/src/deh_str.c
+++ b/src/deh_str.c
@@ -165,7 +165,7 @@
     ++hash_table_entries;
 }
 
-void DEH_AddStringReplacement(char *from_text, char *to_text)
+void DEH_AddStringReplacement(const char *from_text, const char *to_text)
 {
     deh_substitution_t *sub;
     size_t len;
--- a/src/deh_str.h
+++ b/src/deh_str.h
@@ -28,7 +28,7 @@
 void DEH_printf(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(char *from_text, char *to_text);
+void DEH_AddStringReplacement(const char *from_text, const char *to_text);
 
 
 #if 0