Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5921:00bdb1f546d3 HEAD
minor cleanup
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 09 Jul 2007 00:13:02 +0300 |
parents | 00c5e3cbeaf0 |
children | 79513299d42c |
files | src/lib-storage/index/maildir/maildir-uidlist.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Sun Jul 08 23:28:22 2007 +0300 +++ b/src/lib-storage/index/maildir/maildir-uidlist.c Mon Jul 09 00:13:02 2007 +0300 @@ -716,7 +716,7 @@ return 1; } -static int +static void maildir_uidlist_sync_next_partial(struct maildir_uidlist_sync_ctx *ctx, const char *filename, enum maildir_uidlist_rec_flag flags) @@ -754,7 +754,6 @@ rec->flags = (rec->flags | flags) & ~MAILDIR_UIDLIST_REC_FLAG_NONSYNCED; rec->filename = p_strdup(uidlist->record_pool, filename); hash_insert(uidlist->files, rec->filename, rec); - return 1; } int maildir_uidlist_sync_next_pre(struct maildir_uidlist_sync_ctx *ctx, @@ -788,8 +787,10 @@ if (ctx->failed) return -1; - if (ctx->partial) - return maildir_uidlist_sync_next_partial(ctx, filename, flags); + if (ctx->partial) { + maildir_uidlist_sync_next_partial(ctx, filename, flags); + return 1; + } rec = hash_lookup(ctx->files, filename); if (rec != NULL) {