Mercurial > dovecot > core-2.2
changeset 7616:dcdf6f9e1fc0 HEAD
Minor code cleanup
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 09 Jun 2008 00:56:32 +0300 |
parents | 7c9895192a23 |
children | d8d1fdbe29bf |
files | src/lib-storage/index/index-sync.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ 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 @@ 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);