dovecot: minor cleanup
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 9 05:44:43 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/00bdb1f546d3
changeset: 5921:00bdb1f546d3
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 09 00:13:02 2007 +0300
description:
minor cleanup
diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
src/lib-storage/index/maildir/maildir-uidlist.c | 9 +++++----
diffs (33 lines):
diff -r 00c5e3cbeaf0 -r 00bdb1f546d3 src/lib-storage/index/maildir/maildir-uidlist.c
--- 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 @@ int maildir_uidlist_sync_init(struct mai
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 @@ maildir_uidlist_sync_next_partial(struct
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 @@ int maildir_uidlist_sync_next(struct mai
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) {
More information about the dovecot-cvs
mailing list