foxygit / doom Log in
commit 4f1a13f96544292b496416ee7dd993623209ed54
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Thu Mar 1 20:33:35 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 12:31:51 2018 +0200

    dehacked: Make strhash parameter const
---
 src/deh_str.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/deh_str.c b/src/deh_str.c
index 8eb82b55..036abf06 100644
--- a/src/deh_str.c
+++ b/src/deh_str.c
@@ -38,9 +38,9 @@ static int hash_table_length = -1;

 // 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)