dovecot: minor cleanups

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


details:   http://hg.dovecot.org/dovecot/rev/073dfd42d4e7
changeset: 5929:073dfd42d4e7
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 09 01:45:12 2007 +0300
description:
minor cleanups

diffstat:

2 files changed, 3 insertions(+), 4 deletions(-)
src/lib-storage/index/maildir/maildir-storage.c    |    2 +-
src/lib-storage/index/maildir/maildir-sync-index.c |    5 ++---

diffs (41 lines):

diff -r 6c5bc4f1558c -r 073dfd42d4e7 src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c	Mon Jul 09 01:31:07 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-storage.c	Mon Jul 09 01:45:12 2007 +0300
@@ -842,7 +842,7 @@ static int maildir_storage_mailbox_close
 
 	maildir_keywords_deinit(mbox->keywords);
 	maildir_uidlist_deinit(mbox->uidlist);
-        return index_storage_mailbox_close(box);
+	return index_storage_mailbox_close(box);
 }
 
 static void maildir_notify_changes(struct mailbox *box)
diff -r 6c5bc4f1558c -r 073dfd42d4e7 src/lib-storage/index/maildir/maildir-sync-index.c
--- a/src/lib-storage/index/maildir/maildir-sync-index.c	Mon Jul 09 01:31:07 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c	Mon Jul 09 01:45:12 2007 +0300
@@ -65,7 +65,7 @@ static int maildir_sync_flags(struct mai
 {
 	struct mailbox *box = &mbox->ibox.box;
 	const char *dir, *fname, *newfname, *newpath;
-	enum mailbox_sync_type sync_type = 0;
+	enum mailbox_sync_type sync_type;
 	uint8_t flags8;
 
 	fname = strrchr(path, '/');
@@ -90,7 +90,6 @@ static int maildir_sync_flags(struct mai
 	if (rename(path, newpath) == 0) {
 		if (box->v.sync_notify != NULL)
 			box->v.sync_notify(box, ctx->uid, sync_type);
-
 		ctx->changed = TRUE;
 		return 1;
 	}
@@ -98,7 +97,7 @@ static int maildir_sync_flags(struct mai
 		return 0;
 
 	if (!ENOSPACE(errno) && errno != EACCES) {
-		mail_storage_set_critical(&mbox->storage->storage,
+		mail_storage_set_critical(box->storage,
 			"rename(%s, %s) failed: %m", path, newpath);
 	}
 	return -1;


More information about the dovecot-cvs mailing list