Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5929:073dfd42d4e7 HEAD
minor cleanups
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 09 Jul 2007 01:45:12 +0300 |
parents | 6c5bc4f1558c |
children | 7cbeeb953b92 |
files | src/lib-storage/index/maildir/maildir-storage.c src/lib-storage/index/maildir/maildir-sync-index.c |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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)
--- 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 @@ { 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 @@ 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 @@ 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;