core: hash: rename b_hash_string to avoid conflict with b_string

This commit is contained in:
2025-09-22 10:31:30 +01:00
parent d52992c8ba
commit 4ab524a66b
4 changed files with 10 additions and 10 deletions

View File

@@ -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;