* fix an issue that execve attempts to parse directory as elf file.
[lunaix-os.git] / lunaix-os / libs / hash.c
index 277efb32eaf8370fc8f265ef8038ce4d1960004f..41fa4b19dd9726610cc255927d3f8c673fcabf69 100644 (file)
@@ -8,13 +8,13 @@
  * @param str
  * @return unsigned int
  */
  * @param str
  * @return unsigned int
  */
-uint32_t
-strhash_32(char* str, uint32_t truncate_to)
+u32_t
+strhash_32(const char* str, u32_t truncate_to)
 {
     if (!str)
         return 0;
 
 {
     if (!str)
         return 0;
 
-    uint32_t hash = 5381;
+    u32_t hash = 5381;
     int c;
 
     while ((c = *str++))
     int c;
 
     while ((c = *str++))