X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/d57ee3ae693448387e3022fdd07bd741b2db818a..6942ebae59c3904674dce6b67cd07c43a3bbe00d:/lunaix-os/libs/hash.c diff --git a/lunaix-os/libs/hash.c b/lunaix-os/libs/hash.c index dc1b3cc..3a0555f 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(const 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++))