dovecot-1.1: Minor code cleanup

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 9 00:57:23 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/dcdf6f9e1fc0
changeset: 7616:dcdf6f9e1fc0
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 09 00:56:32 2008 +0300
description:
Minor code cleanup

diffstat:

1 file changed, 4 insertions(+), 4 deletions(-)
src/lib-storage/index/index-sync.c |    8 ++++----

diffs (38 lines):

diff -r 7c9895192a23 -r dcdf6f9e1fc0 src/lib-storage/index/index-sync.c
--- a/src/lib-storage/index/index-sync.c	Sat Jun 07 05:10:26 2008 +0300
+++ b/src/lib-storage/index/index-sync.c	Mon Jun 09 00:56:32 2008 +0300
@@ -196,14 +196,14 @@ index_mailbox_sync_init(struct mailbox *
 	return &ctx->ctx;
 }
 
-static int
+static bool
 index_mailbox_sync_next_expunge(struct index_mailbox_sync_context *ctx,
 				struct mailbox_sync_rec *sync_rec_r)
 {
 	const struct seq_range *range;
 
 	if (ctx->expunge_pos == 0)
-		return 0;
+		return FALSE;
 
 	/* expunges is a sorted array of sequences. it's easiest for
 	   us to print them from end to beginning. */
@@ -217,7 +217,7 @@ index_mailbox_sync_next_expunge(struct i
 	sync_rec_r->seq1 = range->seq1;
 	sync_rec_r->seq2 = range->seq2;
 	sync_rec_r->type = MAILBOX_SYNC_TYPE_EXPUNGE;
-	return 1;
+	return TRUE;
 }
 
 bool index_mailbox_sync_next(struct mailbox_sync_context *_ctx,
@@ -237,7 +237,7 @@ bool index_mailbox_sync_next(struct mail
 		sync_rec_r->seq1 = flag_updates[ctx->flag_update_pos].seq1;
 		sync_rec_r->seq2 = flag_updates[ctx->flag_update_pos].seq2;
 		ctx->flag_update_pos++;
-		return 1;
+		return TRUE;
 	}
 
 	return index_mailbox_sync_next_expunge(ctx, sync_rec_r);


More information about the dovecot-cvs mailing list