ucx/hash_key.c

branch
newapi
changeset 324
ce13a778654a
parent 174
0358f1d9c506
--- a/ucx/hash_key.c	Thu Oct 03 18:54:19 2024 +0200
+++ b/ucx/hash_key.c	Sun Oct 06 12:00:31 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