core: hash: rename b_hash_string to avoid conflict with b_string
This commit is contained in:
@@ -41,13 +41,13 @@ static const struct b_hash_function_ops *hash_functions[] = {
|
||||
static const size_t nr_hash_functions
|
||||
= sizeof hash_functions / sizeof hash_functions[0];
|
||||
|
||||
uint64_t b_hash_string(const char *s)
|
||||
uint64_t b_hash_cstr(const char *s)
|
||||
{
|
||||
size_t x = 0;
|
||||
return b_hash_string_ex(s, &x);
|
||||
return b_hash_cstr_ex(s, &x);
|
||||
}
|
||||
|
||||
uint64_t b_hash_string_ex(const char *s, size_t *len)
|
||||
uint64_t b_hash_cstr_ex(const char *s, size_t *len)
|
||||
{
|
||||
uint64_t hash = FNV1_OFFSET_BASIS;
|
||||
size_t i = 0;
|
||||
|
||||
Reference in New Issue
Block a user