[dovecot-cvs] dovecot/src/lib hash.c,1.8,1.9 hash.h,1.5,1.6
cras at procontrol.fi
cras at procontrol.fi
Fri Jan 10 23:30:37 EET 2003
- Previous message: [dovecot-cvs] dovecot/src/lib buffer.c,1.7,1.8 hash.c,1.7,1.8 hash.h,1.4,1.5 imem.c,1.7,1.8 imem.h,1.7,1.8 ioloop-poll.c,1.7,1.8 istream-file.c,1.5,1.6 mempool-alloconly.c,1.16,1.17 mempool-datastack.c,1.5,1.6 mempool-system.c,1.8,1.9 mempool.h,1.8,1.9 Message-Id: <20030110205830.B5B422387C@danu.procontrol.fi>
- Next message: [dovecot-cvs] dovecot/src/lib mempool-system.c,1.9,1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv31827
Modified Files:
hash.c hash.h
Log Message:
whops, shouldn't have been committed.
Index: hash.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/hash.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- hash.c 10 Jan 2003 20:58:28 -0000 1.8
+++ hash.c 10 Jan 2003 21:30:35 -0000 1.9
@@ -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);
Index: hash.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/hash.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- hash.h 10 Jan 2003 20:58:28 -0000 1.5
+++ hash.h 10 Jan 2003 21:30:35 -0000 1.6
@@ -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);
- Previous message: [dovecot-cvs] dovecot/src/lib buffer.c,1.7,1.8 hash.c,1.7,1.8 hash.h,1.4,1.5 imem.c,1.7,1.8 imem.h,1.7,1.8 ioloop-poll.c,1.7,1.8 istream-file.c,1.5,1.6 mempool-alloconly.c,1.16,1.17 mempool-datastack.c,1.5,1.6 mempool-system.c,1.8,1.9 mempool.h,1.8,1.9 Message-Id: <20030110205830.B5B422387C@danu.procontrol.fi>
- Next message: [dovecot-cvs] dovecot/src/lib mempool-system.c,1.9,1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list