[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c, 1.108, 1.109 index-storage.h, 1.119, 1.120

tss at dovecot.org tss at dovecot.org
Fri Mar 30 21:45:25 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv29978/index

Modified Files:
	index-storage.c index-storage.h 
Log Message:
cleaned up mailbox closing code



Index: index-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- index-storage.c	30 Mar 2007 14:12:48 -0000	1.108
+++ index-storage.c	30 Mar 2007 18:45:21 -0000	1.109
@@ -368,7 +368,7 @@
 		index_storage_mailbox_open(ibox);
 }
 
-void index_storage_mailbox_free(struct mailbox *box)
+int index_storage_mailbox_close(struct mailbox *box)
 {
 	struct index_mailbox *ibox = (struct index_mailbox *) box;
 
@@ -384,6 +384,7 @@
 
 	MODULE_CONTEXT_UNSET(ibox->index, mail_storage_mail_index_module);
 	pool_unref(box->pool);
+	return 0;
 }
 
 bool index_storage_is_readonly(struct mailbox *box)

Index: index-storage.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-storage.h,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- index-storage.h	30 Mar 2007 18:41:05 -0000	1.119
+++ index-storage.h	30 Mar 2007 18:45:21 -0000	1.120
@@ -102,7 +102,7 @@
 				enum mailbox_open_flags flags,
 				bool move_to_memory);
 void index_storage_mailbox_open(struct index_mailbox *ibox);
-void index_storage_mailbox_free(struct mailbox *box);
+int index_storage_mailbox_close(struct mailbox *box);
 
 bool index_storage_is_readonly(struct mailbox *box);
 bool index_storage_allow_new_keywords(struct mailbox *box);



More information about the dovecot-cvs mailing list