ucx/cx/hash_key.h

branch
newapi
changeset 324
ce13a778654a
parent 253
087cc9216f28
--- a/ucx/cx/hash_key.h	Thu Oct 03 18:54:19 2024 +0200
+++ b/ucx/cx/hash_key.h	Sun Oct 06 12:00:31 2024 +0200
@@ -46,7 +46,7 @@
 /** Internal structure for a key within a hash map. */
 struct cx_hash_key_s {
     /** The key data. */
-    void const *data;
+    const void *data;
     /**
      * The key data length.
      */
@@ -81,7 +81,7 @@
  * @return the hash key
  */
 __attribute__((__warn_unused_result__))
-CxHashKey cx_hash_key_str(char const *str);
+CxHashKey cx_hash_key_str(const char *str);
 
 /**
  * Computes a hash key from a byte array.
@@ -92,7 +92,7 @@
  */
 __attribute__((__warn_unused_result__))
 CxHashKey cx_hash_key_bytes(
-        unsigned char const *bytes,
+        const unsigned char *bytes,
         size_t len
 );
 
@@ -109,7 +109,7 @@
  */
 __attribute__((__warn_unused_result__))
 CxHashKey cx_hash_key(
-        void const *obj,
+        const void *obj,
         size_t len
 );
 

mercurial