dovecot: Code cleanup

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 8 16:41:50 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/f0dbbc1f0586
changeset: 6956:f0dbbc1f0586
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 08 16:41:35 2007 +0200
description:
Code cleanup

diffstat:

1 file changed, 1 insertion(+), 2 deletions(-)
src/lib-storage/index/index-sync.c |    3 +--

diffs (13 lines):

diff -r 07f151520c84 -r f0dbbc1f0586 src/lib-storage/index/index-sync.c
--- a/src/lib-storage/index/index-sync.c	Sat Dec 08 16:40:34 2007 +0200
+++ b/src/lib-storage/index/index-sync.c	Sat Dec 08 16:41:35 2007 +0200
@@ -325,8 +325,7 @@ int index_mailbox_sync_deinit(struct mai
 
 	/* finish handling expunges, so we don't break when updating
 	   recent flags */
-	while (ctx->expunge_pos > 0)
-		index_mailbox_sync_next_expunge(ctx, &sync_rec);
+	while (index_mailbox_sync_next_expunge(ctx, &sync_rec) > 0) ;
 
 	if (ctx->sync_ctx != NULL) {
 		if (mail_index_view_sync_commit(&ctx->sync_ctx) < 0) {


More information about the dovecot-cvs mailing list