Mercurial > dovecot > original-hg > dovecot-1.2
changeset 942:fbd907ad9b27 HEAD
whops, shouldn't have been committed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 10 Jan 2003 23:30:35 +0200 |
parents | 4d6b69558add |
children | 9a011e9e7070 |
files | src/lib/hash.c src/lib/hash.h |
diffstat | 2 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/hash.c Fri Jan 10 22:58:28 2003 +0200 +++ b/src/lib/hash.c Fri Jan 10 23:30:35 2003 +0200 @@ -88,8 +88,8 @@ } } -struct hash_table *hash_create(pool_t node_pool, pool_t table_pool, - unsigned int initial_size, HashFunc hash_func, +struct hash_table *hash_create(pool_t pool, unsigned int initial_size, + HashFunc hash_func, HashCompareFunc key_compare_func) { struct hash_table *table; @@ -97,8 +97,7 @@ i_assert(pool != NULL); table = p_new(pool, struct hash_table, 1); - table->node_pool = node_pool; - table->table_pool = table_pool; + table->pool = pool; table->size = CLAMP(primes_closest(initial_size), HASH_TABLE_MIN_SIZE, HASH_TABLE_MAX_SIZE);
--- a/src/lib/hash.h Fri Jan 10 22:58:28 2003 +0200 +++ b/src/lib/hash.h Fri Jan 10 23:30:35 2003 +0200 @@ -10,8 +10,8 @@ /* Create a new hash table. If initial_size is 0, the default value is used. If hash_func or key_compare_func is NULL, direct hashing/comparing is used. */ -struct hash_table *hash_create(pool_t node_pool, pool_t hash_pool, - unsigned int initial_size, HashFunc hash_func, +struct hash_table *hash_create(pool_t pool, unsigned int initial_size, + HashFunc hash_func, HashCompareFunc key_compare_func); void hash_destroy(struct hash_table *table);