X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/a5338b60e111972364a8bc6f07011c6defd213d2..dbfc095e6e2db3fd17d5406c1ec30a478194ad4d:/lunaix-os/libs/hash.c diff --git a/lunaix-os/libs/hash.c b/lunaix-os/libs/hash.c index c1580ed..b4e5c6f 100644 --- a/lunaix-os/libs/hash.c +++ b/lunaix-os/libs/hash.c @@ -1,4 +1,5 @@ -#include +#include +#include /** * @brief Simple string hash function @@ -8,13 +9,13 @@ * @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++))