]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-count.c
lib/parse-sexp: stem unquoted atoms
[notmuch] / notmuch-count.c
index bfa0363ab3f141b2c456a2b18fd3e1592ca6f90d..e8c545e3a1ff9de57407d1c832373fec937e0436 100644 (file)
@@ -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");