aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch-dump.c')
-rw-r--r--notmuch-dump.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/notmuch-dump.c b/notmuch-dump.c
index 845a67e2..2024e303 100644
--- a/notmuch-dump.c
+++ b/notmuch-dump.c
@@ -23,9 +23,8 @@
#include "string-util.h"
int
-notmuch_dump_command (unused (void *ctx), int argc, char *argv[])
+notmuch_dump_command (notmuch_config_t *config, int argc, char *argv[])
{
- notmuch_config_t *config;
notmuch_database_t *notmuch;
notmuch_query_t *query;
FILE *output = stdout;
@@ -34,10 +33,6 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])
notmuch_tags_t *tags;
const char *query_str = "";
- config = notmuch_config_open (ctx, NULL, FALSE);
- if (config == NULL)
- return 1;
-
if (notmuch_database_open (notmuch_config_get_database_path (config),
NOTMUCH_DATABASE_MODE_READ_ONLY, &notmuch))
return 1;