git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor: replace all stdint::uint32_t into short and more manageable u32_t
[lunaix-os.git]
/
lunaix-os
/
libs
/
hash.c
diff --git
a/lunaix-os/libs/hash.c
b/lunaix-os/libs/hash.c
index dc1b3ccb1c1af2f9e537457a6fc8b01637b472c5..41fa4b19dd9726610cc255927d3f8c673fcabf69 100644
(file)
--- a/
lunaix-os/libs/hash.c
+++ b/
lunaix-os/libs/hash.c
@@
-8,13
+8,13
@@
* @param str
* @return unsigned int
*/
-u
int
32_t
-strhash_32(const char* str, u
int
32_t truncate_to)
+u32_t
+strhash_32(const char* str, u32_t truncate_to)
{
if (!str)
return 0;
- u
int
32_t hash = 5381;
+ u32_t hash = 5381;
int c;
while ((c = *str++))