-#include <lib/hash.h>
+#include <klibc/hash.h>
+#include <lunaix/compiler.h>
/**
* @brief Simple string hash function
* @param str
* @return unsigned int
*/
-uint32_t
-strhash_32(unsigned char* str, uint32_t truncate_to)
+u32_t _weak
+strhash_32(const char* str, u32_t truncate_to)
{
if (!str)
return 0;
- uint32_t hash = 5381;
+ u32_t hash = 5381;
int c;
while ((c = *str++))