dovecot: minor code cleanup

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 18 09:26:41 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/c23d396f84b2
changeset: 6081:c23d396f84b2
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 18 09:26:35 2007 +0300
description:
minor code cleanup

diffstat:

1 file changed, 4 insertions(+), 4 deletions(-)
src/lib-index/mailbox-list-index-sync.c |    8 ++++----

diffs (37 lines):

diff -r 1f0e71c833c3 -r c23d396f84b2 src/lib-index/mailbox-list-index-sync.c
--- a/src/lib-index/mailbox-list-index-sync.c	Wed Jul 18 09:26:20 2007 +0300
+++ b/src/lib-index/mailbox-list-index-sync.c	Wed Jul 18 09:26:35 2007 +0300
@@ -228,13 +228,13 @@ mailbox_list_index_sync_int(struct mailb
 	const char *p, *hier_name;
 	struct mailbox_list_sync_dir *dir;
 	struct mailbox_list_sync_record *rec = NULL;
-	unsigned int idx, child_flags;
+	unsigned int idx, rec_flags;
 
 	if (ctx->failed)
 		return -1;
 
 	dir = ctx->sync_root;
-	child_flags = MAILBOX_LIST_INDEX_FLAG_CHILDREN;
+	rec_flags = MAILBOX_LIST_INDEX_FLAG_CHILDREN;
 
 	t_push();
 	for (;;) {
@@ -256,7 +256,7 @@ mailbox_list_index_sync_int(struct mailb
 			   NOCHILDREN flag. if we happened to create the
 			   parent ourself, also add NONEXISTENT flag. */
 			mail_index_update_flags(ctx->trans, rec->seq,
-						MODIFY_ADD, child_flags);
+						MODIFY_ADD, rec_flags);
 			mail_index_update_flags(ctx->trans, rec->seq,
 					MODIFY_REMOVE,
 					MAILBOX_LIST_INDEX_FLAG_NOCHILDREN);
@@ -265,7 +265,7 @@ mailbox_list_index_sync_int(struct mailb
 		rec = mailbox_list_sync_dir_lookup(dir, hier_name, &idx);
 		if (rec == NULL) {
 			/* new record */
-			child_flags |= MAILBOX_LIST_INDEX_FLAG_NONEXISTENT;
+			rec_flags |= MAILBOX_LIST_INDEX_FLAG_NONEXISTENT;
 			rec = mailbox_list_alloc_add_record(ctx, dir,
 							    hier_name, idx);
 		} else if (rec->seq == 0) {


More information about the dovecot-cvs mailing list