src/hash_key.c

changeset 890
54565fd74e74
parent 690
2c2304622981
--- a/src/hash_key.c	Wed Sep 18 00:02:18 2024 +0200
+++ b/src/hash_key.c	Sat Sep 28 15:47:28 2024 +0200
@@ -30,7 +30,7 @@
 #include <string.h>
 
 void cx_hash_murmur(CxHashKey *key) {
-    unsigned char const *data = key->data;
+    const unsigned char *data = key->data;
     if (data == NULL) {
         // extension: special value for NULL
         key->hash = 1574210520u;
@@ -81,7 +81,7 @@
     key->hash = h;
 }
 
-CxHashKey cx_hash_key_str(char const *str) {
+CxHashKey cx_hash_key_str(const char *str) {
     CxHashKey key;
     key.data = str;
     key.len = str == NULL ? 0 : strlen(str);
@@ -90,7 +90,7 @@
 }
 
 CxHashKey cx_hash_key_bytes(
-        unsigned char const *bytes,
+        const unsigned char *bytes,
         size_t len
 ) {
     CxHashKey key;
@@ -101,7 +101,7 @@
 }
 
 CxHashKey cx_hash_key(
-        void const *obj,
+        const void *obj,
         size_t len
 ) {
     CxHashKey key;

mercurial