diff options
| author | David Bremner <david@tethera.net> | 2017-02-26 17:21:34 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-03-22 08:35:07 -0300 |
| commit | 5ce8e0b11b40f733e6231d2067764e76717a341a (patch) | |
| tree | b58f3e8f804d2d06e7070be05c71941c342c38a3 /lib/query.cc | |
| parent | 86cbd215eb67d7b996c977352a50e70c101cb641 (diff) | |
lib: replace deprecated n_q_count_messages with status returning version
This function was deprecated in notmuch 0.21. We re-use the name for
a status returning version, and deprecate the _st name. One or two
remaining uses of the (removed) non-status returning version fixed at
the same time
Diffstat (limited to 'lib/query.cc')
| -rw-r--r-- | lib/query.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/query.cc b/lib/query.cc index 7192e7f0..754ccfcc 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -598,18 +598,14 @@ notmuch_threads_destroy (notmuch_threads_t *threads) talloc_free (threads); } -unsigned int -notmuch_query_count_messages (notmuch_query_t *query) +notmuch_status_t +notmuch_query_count_messages_st (notmuch_query_t *query, unsigned *count_out) { - notmuch_status_t status; - unsigned int count; - - status = notmuch_query_count_messages_st (query, &count); - return status ? 0 : count; + return notmuch_query_count_messages (query, count_out); } notmuch_status_t -notmuch_query_count_messages_st (notmuch_query_t *query, unsigned *count_out) +notmuch_query_count_messages (notmuch_query_t *query, unsigned *count_out) { return _notmuch_query_count_documents (query, "mail", count_out); } |
