dovecot-2.1: lib-storage: Finished previous get_mailbox_flags() ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 12 12:38:17 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/7669862d95e7
changeset: 13442:7669862d95e7
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 12 12:38:04 2011 +0300
description:
lib-storage: Finished previous get_mailbox_flags() change.

diffstat:

 src/lib-storage/list/mailbox-list-fs-flags.c |  3 ---
 src/lib-storage/list/mailbox-list-fs.h       |  1 -
 2 files changed, 0 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 896ed71917aa -r 7669862d95e7 src/lib-storage/list/mailbox-list-fs-flags.c
--- a/src/lib-storage/list/mailbox-list-fs-flags.c	Mon Sep 12 12:02:33 2011 +0300
+++ b/src/lib-storage/list/mailbox-list-fs-flags.c	Mon Sep 12 12:38:04 2011 +0300
@@ -109,13 +109,11 @@
 int fs_list_get_mailbox_flags(struct mailbox_list *list,
 			      const char *dir, const char *fname,
 			      enum mailbox_list_file_type type,
-			      struct stat *st_r,
 			      enum mailbox_info_flags *flags_r)
 {
 	struct stat st;
 	const char *path;
 
-	memset(st_r, 0, sizeof(*st_r));
 	*flags_r = 0;
 
 	if (*list->set.maildir_name != '\0') {
@@ -165,7 +163,6 @@
 			return -1;
 		}
 	}
-	*st_r = st;
 
 	if (!S_ISDIR(st.st_mode)) {
 		if (strncmp(fname, ".nfs", 4) == 0) {
diff -r 896ed71917aa -r 7669862d95e7 src/lib-storage/list/mailbox-list-fs.h
--- a/src/lib-storage/list/mailbox-list-fs.h	Mon Sep 12 12:02:33 2011 +0300
+++ b/src/lib-storage/list/mailbox-list-fs.h	Mon Sep 12 12:38:04 2011 +0300
@@ -27,7 +27,6 @@
 int fs_list_get_mailbox_flags(struct mailbox_list *list,
 			      const char *dir, const char *fname,
 			      enum mailbox_list_file_type type,
-			      struct stat *st_r,
 			      enum mailbox_info_flags *flags);
 
 #endif


More information about the dovecot-cvs mailing list