diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 04:23:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 04:23:18 +0000 |
commit | b90161ccd3b318f3314a23cb10c387651ad35831 (patch) | |
tree | a47dc087160299ce02d728cbf031d84af6281537 /src/lyb.c | |
parent | Adding upstream version 2.1.30. (diff) | |
download | libyang2-b90161ccd3b318f3314a23cb10c387651ad35831.tar.xz libyang2-b90161ccd3b318f3314a23cb10c387651ad35831.zip |
Adding upstream version 2.1.148.upstream/2.1.148upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lyb.c')
-rw-r--r-- | src/lyb.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |