shithub: choc

Download patch

ref: 4f1a13f96544292b496416ee7dd993623209ed54
parent: 6e76f031a17f4067a89d00657659c27b2741616d
author: Turo Lamminen <[email protected]>
date: Thu Mar 1 15:33:35 EST 2018

dehacked: Make strhash parameter const

--- a/src/deh_str.c
+++ b/src/deh_str.c
@@ -38,9 +38,9 @@
 
 // This is the algorithm used by glib
 
-static unsigned int strhash(char *s)
+static unsigned int strhash(const char *s)
 {
-    char *p = s;
+    const char *p = s;
     unsigned int h = *p;
   
     if (h)