src/cx/hash_key.h

changeset 890
54565fd74e74
parent 759
475335643af4
--- a/src/cx/hash_key.h	Wed Sep 18 00:02:18 2024 +0200
+++ b/src/cx/hash_key.h	Sat Sep 28 15:47:28 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