From aae676c70ce87762374a869f600393b8b6ad5857 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 24 Mar 2018 16:53:12 -0700 Subject: [PATCH] Rename get_filter to find. --- include/ht.h | 2 +- src/ht.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ht.h b/include/ht.h index 50e7ed0..444ac3a 100644 --- a/include/ht.h +++ b/include/ht.h @@ -134,7 +134,7 @@ void* ht_get(ht* ht, const void* key); * @param compare the comparison function used to compare adta. * @return the data, or NULL if it is not found. */ -void* ht_get_filter(ht* ht, const void* key, void* data, compare_func compare); +void* ht_find(ht* ht, const void* key, void* data, compare_func compare); /** * Removes a value from the hash table. * @param ht the hash table to remove a value from. diff --git a/src/ht.c b/src/ht.c index 8ff07ac..350dbe1 100644 --- a/src/ht.c +++ b/src/ht.c @@ -84,7 +84,7 @@ void* ht_get(ht* ht, const void* key) { return data; } -void* ht_get_filter(ht* ht, const void* key, void* data, compare_func compare) { +void* ht_find(ht* ht, const void* key, void* data, compare_func compare) { void* found = NULL; ht_node* search_node; unsigned long key_int = ht->hash_func(key) % LIBDS_HT_SIZE;