]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-count.c
lib: replace deprecated n_q_count_threads with status returning version
[notmuch] / notmuch-count.c
index d3457bbe91bd07747ddee2c86e3fe1392cac80d3..cf80ee25a102fc4f469fc26ce50c85bf8096eb1e 100644 (file)
@@ -92,13 +92,13 @@ print_count (notmuch_database_t *notmuch, const char *query_str,
 
     switch (output) {
     case OUTPUT_MESSAGES:
-       status = notmuch_query_count_messages_st (query, &ucount);
+       status = notmuch_query_count_messages (query, &ucount);
        if (print_status_query ("notmuch count", query, status))
            return -1;
        printf ("%u", ucount);
        break;
     case OUTPUT_THREADS:
-       status = notmuch_query_count_threads_st (query, &ucount);
+       status = notmuch_query_count_threads (query, &ucount);
        if (print_status_query ("notmuch count", query, status))
            return -1;
        printf ("%u", ucount);