X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-count.c;h=e8c545e3a1ff9de57407d1c832373fec937e0436;hb=036734252d07d8568937073d4f2d366bcb06bc4e;hp=bfa0363ab3f141b2c456a2b18fd3e1592ca6f90d;hpb=eef21c284742fa5ae14d7d352acc3a4dc98821ce;p=notmuch diff --git a/notmuch-count.c b/notmuch-count.c index bfa0363a..e8c545e3 100644 --- a/notmuch-count.c +++ b/notmuch-count.c @@ -151,8 +151,7 @@ count_file (notmuch_database_t *notmuch, FILE *input, notmuch_config_values_t *e } int -notmuch_count_command (unused(notmuch_config_t *config), notmuch_database_t *notmuch, - int argc, char *argv[]) +notmuch_count_command (notmuch_database_t *notmuch, int argc, char *argv[]) { char *query_str; int opt_index; @@ -183,7 +182,7 @@ notmuch_count_command (unused(notmuch_config_t *config), notmuch_database_t *not if (opt_index < 0) return EXIT_FAILURE; - notmuch_process_shared_options (argv[0]); + notmuch_process_shared_options (notmuch, argv[0]); if (input_file_name) { batch = true; @@ -202,8 +201,6 @@ notmuch_count_command (unused(notmuch_config_t *config), notmuch_database_t *not return EXIT_FAILURE; } - notmuch_exit_if_unmatched_db_uuid (notmuch); - query_str = query_string_from_args (notmuch, argc - opt_index, argv + opt_index); if (query_str == NULL) { fprintf (stderr, "Out of memory.\n");