X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0e1309c02f0703c050df09b71346dab60fc6df87..d1b1c8d9119229dbeed06cd252917e54a1cb77f6:/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++))