[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


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




More information about the dovecot-cvs mailing list