Various odds and ends.

This commit is contained in:
pdw
2002-10-11 15:21:35 +00:00
parent 7c5ba0f5d7
commit 62a9d8a85c
7 changed files with 144 additions and 41 deletions

4
hash.c
View File

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