X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fquery.cc;h=754ccfccee6d5f48097b51ef14a0d853cc32052a;hp=7192e7f049ddbb678d55ab07219aefa491ea74e3;hb=5ce8e0b11b40f733e6231d2067764e76717a341a;hpb=86cbd215eb67d7b996c977352a50e70c101cb641 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); }