changeset 275:d5bb4df232bf

Another hash table API update.
author Timo Sirainen <tss@iki.fi>
date Mon, 20 Aug 2012 09:48:26 +0300
parents cf17152cd1ea
children e7b1c65b3734
files src/imaptest.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/imaptest.c	Sun Aug 19 16:17:57 2012 +0300
+++ b/src/imaptest.c	Mon Aug 20 09:48:26 2012 +0300
@@ -139,14 +139,12 @@
 	if (ioloop_time >= next_checkpoint_time &&
 	    conf.checkpoint_interval > 0) {
 		struct hash_iterate_context *iter;
-		void *key, *value;
+		char *key;
+		struct mailbox_storage *storage;
 
 		iter = hash_table_iterate_init(storages);
-		while (hash_table_iterate(iter, &key, &value)) {
-			struct mailbox_storage *storage = value;
-
+		while (hash_table_iterate(iter, storages, &key, &storage))
 			clients_checkpoint(storage);
-		}
 		hash_table_iterate_deinit(&iter);
 		next_checkpoint_time = ioloop_time + conf.checkpoint_interval;
 	}