Mercurial > dovecot > core-2.2
comparison src/lib-storage/index/dbox-common/dbox-sync-rebuild.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 | ba770cba5598 |
children | d0d7b810646b |
comparison
equal
deleted
inserted
replaced
14628:e0cc3fb5dc64 | 14629:c93ca5e46a8a |
---|---|
205 int dbox_sync_rebuild_verify_alt_storage(struct mailbox_list *list) | 205 int dbox_sync_rebuild_verify_alt_storage(struct mailbox_list *list) |
206 { | 206 { |
207 const char *alt_path, *error; | 207 const char *alt_path, *error; |
208 struct stat st; | 208 struct stat st; |
209 | 209 |
210 alt_path = mailbox_list_get_path(list, NULL, | 210 alt_path = mailbox_list_get_root_path(list, MAILBOX_LIST_PATH_TYPE_ALT_DIR); |
211 MAILBOX_LIST_PATH_TYPE_ALT_DIR); | |
212 if (alt_path == NULL) | 211 if (alt_path == NULL) |
213 return 0; | 212 return 0; |
214 | 213 |
215 /* make sure alt storage is mounted. if it's not, abort the rebuild. */ | 214 /* make sure alt storage is mounted. if it's not, abort the rebuild. */ |
216 if (stat(alt_path, &st) == 0) | 215 if (stat(alt_path, &st) == 0) |