comparison src/lib-storage/index/dbox-common/dbox-sync-rebuild.c @ 14682:d0d7b810646b

Make sure we check all the functions' return values. Minor API changes to simplify this. Checked using a patched clang that adds attribute(warn_unused_result) to all functions. This commit fixes several error handling mistakes.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 Jun 2012 01:14:03 +0300
parents c93ca5e46a8a
children 89c319980584
comparison
equal deleted inserted replaced
14681:ca37d1577291 14682:d0d7b810646b
156 ctx->box = box; 156 ctx->box = box;
157 ctx->view = view; 157 ctx->view = view;
158 ctx->trans = trans; 158 ctx->trans = trans;
159 mail_index_reset(ctx->trans); 159 mail_index_reset(ctx->trans);
160 index_mailbox_reset_uidvalidity(box); 160 index_mailbox_reset_uidvalidity(box);
161 mail_index_ext_lookup(box->index, "cache", &ctx->cache_ext_id); 161 (void)mail_index_ext_lookup(box->index, "cache", &ctx->cache_ext_id);
162 162
163 /* open cache and read the caching decisions. we'll reset the cache in 163 /* open cache and read the caching decisions. we'll reset the cache in
164 case it contains any invalid data, but we want to preserve the 164 case it contains any invalid data, but we want to preserve the
165 decisions. */ 165 decisions. */
166 (void)mail_cache_open_and_verify(ctx->box->cache); 166 (void)mail_cache_open_and_verify(ctx->box->cache);