dovecot: s/sync_ctx/ctx/

dovecot at dovecot.org dovecot at dovecot.org
Mon Jul 9 05:44:40 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/53abd603e04b
changeset: 5912:53abd603e04b
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jul 08 22:19:56 2007 +0300
description:
s/sync_ctx/ctx/

diffstat:

1 file changed, 7 insertions(+), 7 deletions(-)
src/lib-storage/index/maildir/maildir-sync.c |   14 +++++++-------

diffs (48 lines):

diff -r 8bb5c7a69405 -r 53abd603e04b src/lib-storage/index/maildir/maildir-sync.c
--- a/src/lib-storage/index/maildir/maildir-sync.c	Sun Jul 08 22:16:04 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync.c	Sun Jul 08 22:19:56 2007 +0300
@@ -902,13 +902,13 @@ int maildir_sync_index_finish(struct mai
 	return ret;
 }
 
-int maildir_sync_index(struct maildir_index_sync_context *sync_ctx,
+int maildir_sync_index(struct maildir_index_sync_context *ctx,
 		       bool partial)
 {
-	struct maildir_mailbox *mbox = sync_ctx->mbox;
-	struct mail_index_view *view = sync_ctx->view;
+	struct maildir_mailbox *mbox = ctx->mbox;
+	struct mail_index_view *view = ctx->view;
 	struct maildir_uidlist_iter_ctx *iter;
-	struct mail_index_transaction *trans = sync_ctx->trans;
+	struct mail_index_transaction *trans = ctx->trans;
 	const struct mail_index_header *hdr;
 	struct mail_index_header empty_hdr;
 	const struct mail_index_record *rec;
@@ -923,7 +923,7 @@ int maildir_sync_index(struct maildir_in
 	int ret = 0;
 	bool full_rescan = FALSE;
 
-	i_assert(maildir_uidlist_is_locked(sync_ctx->mbox->uidlist));
+	i_assert(maildir_uidlist_is_locked(ctx->mbox->uidlist));
 
 	hdr = mail_index_get_header(view);
 	uid_validity = maildir_uidlist_get_uid_validity(mbox->uidlist);
@@ -945,7 +945,7 @@ int maildir_sync_index(struct maildir_in
 	t_array_init(&idx_keywords, MAILDIR_MAX_KEYWORDS);
 	iter = maildir_uidlist_iter_init(mbox->uidlist);
 	while (maildir_uidlist_iter_next(iter, &uid, &uflags, &filename)) {
-		maildir_filename_get_flags(sync_ctx->keywords_sync_ctx,
+		maildir_filename_get_flags(ctx->keywords_sync_ctx,
 					   filename, &flags, &keywords);
 
 		i_assert(uid > prev_uid);
@@ -1150,7 +1150,7 @@ int maildir_sync_index(struct maildir_in
 		/* now, sync the index. NOTE: may recurse back to here with
 		   partial syncs */
 		mbox->syncing_commit = TRUE;
-		if (maildir_sync_index_records(sync_ctx) < 0)
+		if (maildir_sync_index_records(ctx) < 0)
 			ret = -1;
 		mbox->syncing_commit = FALSE;
 


More information about the dovecot-cvs mailing list