Mercurial > dovecot > core-2.2
diff src/lib-storage/index/dbox-common/dbox-storage.c @ 14629:c93ca5e46a8a
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 24 Jun 2012 00:52:57 +0300 |
parents | 370e1f945c01 |
children | 0efc12f3eb2a |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-common/dbox-storage.c Fri Jun 22 21:59:01 2012 +0300 +++ b/src/lib-storage/index/dbox-common/dbox-storage.c Sun Jun 24 00:52:57 2012 +0300 @@ -59,12 +59,10 @@ { const char *root_dir, *alt_symlink_path, *alt_path; - root_dir = mailbox_list_get_path(list, NULL, - MAILBOX_LIST_PATH_TYPE_DIR); + root_dir = mailbox_list_get_root_path(list, MAILBOX_LIST_PATH_TYPE_DIR); alt_symlink_path = t_strconcat(root_dir, "/"DBOX_ALT_SYMLINK_NAME, NULL); - alt_path = mailbox_list_get_path(list, NULL, - MAILBOX_LIST_PATH_TYPE_ALT_MAILBOX); + alt_path = mailbox_list_get_root_path(list, MAILBOX_LIST_PATH_TYPE_ALT_MAILBOX); if (!dbox_alt_path_has_changed(root_dir, alt_path, alt_symlink_path)) return; @@ -123,8 +121,7 @@ { const char *path; - path = mailbox_list_get_path(list, NULL, - MAILBOX_LIST_PATH_TYPE_CONTROL); + path = mailbox_list_get_root_path(list, MAILBOX_LIST_PATH_TYPE_CONTROL); path = t_strconcat(path, "/"DBOX_UIDVALIDITY_FILE_NAME, NULL); return mailbox_uidvalidity_next(list, path); }