dovecot-1.3: Shared mailboxes: Fix to previous mailbox_open() ch...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 8 01:11:23 EEST 2009
details: http://hg.dovecot.org/dovecot-1.3/rev/319a97b5cfd7
changeset: 9042:319a97b5cfd7
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 5d3dd9eb82d9 -r 319a97b5cfd7 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 5d3dd9eb82d9 -r 319a97b5cfd7 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
@@ -427,7 +427,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 5d3dd9eb82d9 -r 319a97b5cfd7 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
@@ -14,7 +14,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