Mercurial > dovecot > core-2.2
changeset 3873:31d8f49b1a34 HEAD
Compiler warning fixes and one real fix for int -> bool changes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 14 Jan 2006 17:19:56 +0200 |
parents | b054cd10ceaa |
children | a8fef45677ba |
files | src/lib-storage/index/index-search.c src/lib-storage/index/mbox/mbox-sync.c src/plugins/quota/quota-storage.c |
diffstat | 3 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c Sat Jan 14 17:14:38 2006 +0200 +++ b/src/lib-storage/index/index-search.c Sat Jan 14 17:19:56 2006 +0200 @@ -124,11 +124,12 @@ static void search_index_arg(struct mail_search_arg *arg, void *context) { struct index_search_context *ctx = context; - bool found; if (arg->type == SEARCH_SEQSET) { - found = seqset_contains(arg->value.seqset, ctx->mail->seq); - ARG_SET_RESULT(arg, found); + if (seqset_contains(arg->value.seqset, ctx->mail->seq)) + ARG_SET_RESULT(arg, 1); + else + ARG_SET_RESULT(arg, 0); return; }
--- a/src/lib-storage/index/mbox/mbox-sync.c Sat Jan 14 17:14:38 2006 +0200 +++ b/src/lib-storage/index/mbox/mbox-sync.c Sat Jan 14 17:19:56 2006 +0200 @@ -1543,8 +1543,8 @@ uint32_t seq; uoff_t offset; unsigned int lock_id = 0; - int ret; - bool changed, delay_writes; + int ret, changed; + bool delay_writes; delay_writes = mbox->ibox.readonly || ((flags & MBOX_SYNC_REWRITE) == 0 &&
--- a/src/plugins/quota/quota-storage.c Sat Jan 14 17:14:38 2006 +0200 +++ b/src/plugins/quota/quota-storage.c Sat Jan 14 17:19:56 2006 +0200 @@ -109,7 +109,8 @@ static int quota_check(struct mailbox_transaction_context *t, struct mail *mail) { struct quota_transaction_context *qt = QUOTA_CONTEXT(t); - int ret, too_large; + int ret; + bool too_large; ret = quota_try_alloc(qt, mail, &too_large); if (ret > 0)