Various odds and ends.
This commit is contained in:
4
hash.c
4
hash.c
@@ -64,9 +64,7 @@ hash_status_enum hash_find(hash_type* hash_table, void* key, void **rec) {
|
||||
/*******************************
|
||||
* find node containing data *
|
||||
*******************************/
|
||||
int bucket = hash_table->hash(key);
|
||||
|
||||
p = hash_table->table[bucket];
|
||||
p = hash_table->table[hash_table->hash(key)];
|
||||
|
||||
while (p && !hash_table->compare(p->key, key)) {
|
||||
p = p->next;
|
||||
|
||||
Reference in New Issue
Block a user