]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: clean up mailbox_list_create to improve readability
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Wed, 12 Oct 2016 18:57:51 +0000 (14:57 -0400)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 19 Oct 2016 17:22:29 +0000 (20:22 +0300)
commitde4ac43c338ff86e68d20ebc60970427fa044c13
treef570ae087fd3eb361045db19e03ca3b09d98a455
parent28f8fb717e0f958603088e406f4e9de2b4692c5b
lib-storage: clean up mailbox_list_create to improve readability

There is no reason to use mailbox_list_driver_find() here instead of
mailbox_list_find_class() as (1) we do not need the index into the list
driver array, and (2) dealing with double-pointers is harder than regular
pointers.
src/lib-storage/mailbox-list.c