From b90161ccd3b318f3314a23cb10c387651ad35831 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 06:23:18 +0200 Subject: Adding upstream version 2.1.148. Signed-off-by: Daniel Baumann --- src/lyb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lyb.c') diff --git a/src/lyb.c b/src/lyb.c index 87806c8..59d379c 100644 --- a/src/lyb.c +++ b/src/lyb.c @@ -39,8 +39,8 @@ lyb_generate_hash(const struct lysc_node *node, uint8_t collision_id) LYB_HASH hash; /* generate full hash */ - full_hash = dict_hash_multi(0, mod->name, strlen(mod->name)); - full_hash = dict_hash_multi(full_hash, node->name, strlen(node->name)); + full_hash = lyht_hash_multi(0, mod->name, strlen(mod->name)); + full_hash = lyht_hash_multi(full_hash, node->name, strlen(node->name)); if (collision_id) { size_t ext_len; @@ -51,9 +51,9 @@ lyb_generate_hash(const struct lysc_node *node, uint8_t collision_id) /* use one more byte from the module name than before */ ext_len = collision_id; } - full_hash = dict_hash_multi(full_hash, mod->name, ext_len); + full_hash = lyht_hash_multi(full_hash, mod->name, ext_len); } - full_hash = dict_hash_multi(full_hash, NULL, 0); + full_hash = lyht_hash_multi(full_hash, NULL, 0); /* use the shortened hash */ hash = full_hash & (LYB_HASH_MASK >> collision_id); -- cgit v1.2.3