diff options
author | Carl Worth <cworth@cworth.org> | 2010-01-07 10:19:44 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-01-07 10:19:44 -0800 |
commit | f93b7218c3e2d11c5b3cdd4c367a42ca7a7ede77 (patch) | |
tree | 7d1cd35cb6e21d2c1dbf3bf79799fbeb35ae6422 /notmuch-time.c | |
parent | 6ed606c19edfe06d2dfd48854fc97f8502eaaf7c (diff) |
lib: Consolidate checks for read-only database.
Previously, many checks were deep in the library just before a cast
operation. These have now been replaced with internal errors and new
checks have instead been added at the beginning of all top-levelentry
points requiring a read-write database.
The new checks now also use a single function for checking and
printing the error message. This will give us a convenient location to
extend the check, (such as based on database version as well).
Diffstat (limited to 'notmuch-time.c')
0 files changed, 0 insertions, 0 deletions