dovecot-1.2: Shared mailboxes: Fix to previous mailbox_open() ch...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 8 01:02:03 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/b6abc84440df
changeset: 8929:b6abc84440df
user: Timo Sirainen <tss at iki.fi>
date: Tue Apr 07 18:01:57 2009 -0400
description:
Shared mailboxes: Fix to previous mailbox_open() change.
diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
src/lib-storage/index/shared/shared-list.c | 4 ++--
src/lib-storage/mail-storage.c | 2 +-
src/lib-storage/mailbox-list-private.h | 2 +-
diffs (42 lines):
diff -r 3a30d73fc463 -r b6abc84440df src/lib-storage/index/shared/shared-list.c
--- a/src/lib-storage/index/shared/shared-list.c Tue Apr 07 17:57:34 2009 -0400
+++ b/src/lib-storage/index/shared/shared-list.c Tue Apr 07 18:01:57 2009 -0400
@@ -43,12 +43,12 @@ static void shared_list_copy_error(struc
}
static int
-shared_get_storage(struct mailbox_list *list, const char *name,
+shared_get_storage(struct mailbox_list *list, const char **name,
struct mail_storage **storage_r)
{
struct mail_namespace *ns;
- if (shared_storage_get_namespace(list->ns->storage, &name, &ns) < 0)
+ if (shared_storage_get_namespace(list->ns->storage, name, &ns) < 0)
return -1;
*storage_r = ns->storage;
return 0;
diff -r 3a30d73fc463 -r b6abc84440df src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c Tue Apr 07 17:57:34 2009 -0400
+++ b/src/lib-storage/mail-storage.c Tue Apr 07 18:01:57 2009 -0400
@@ -462,7 +462,7 @@ struct mailbox *mailbox_open(struct mail
struct mailbox *box;
if (list->v.get_storage != NULL) {
- if (list->v.get_storage(list, name, &storage) < 0)
+ if (list->v.get_storage(list, &name, &storage) < 0)
return NULL;
*_storage = storage;
}
diff -r 3a30d73fc463 -r b6abc84440df src/lib-storage/mailbox-list-private.h
--- a/src/lib-storage/mailbox-list-private.h Tue Apr 07 17:57:34 2009 -0400
+++ b/src/lib-storage/mailbox-list-private.h Tue Apr 07 18:01:57 2009 -0400
@@ -13,7 +13,7 @@ struct mailbox_list_vfuncs {
void (*deinit)(struct mailbox_list *list);
int (*get_storage)(struct mailbox_list *list,
- const char *name, struct mail_storage **storage_r);
+ const char **name, struct mail_storage **storage_r);
bool (*is_valid_pattern)(struct mailbox_list *list,
const char *pattern);
bool (*is_valid_existing_name)(struct mailbox_list *list,
More information about the dovecot-cvs
mailing list