diff options
| author | David Bremner <david@tethera.net> | 2020-08-26 07:54:10 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-02-06 19:12:34 -0400 |
| commit | 53f27aaf73192babf831e907ade71dc16f6880be (patch) | |
| tree | 5d94f90a144e50a33222cfdff5e0c54ae20ab820 /notmuch-dump.c | |
| parent | acc6331baa41a8aa7025924c823251d8f8c3384f (diff) | |
cli/dump: convert to new config framework
This conversion is trivial because the only configuration information
accessed by dump is that stored in the database (in order to dump
it). We do need to be careful to keep the write lock on the database
to ensure dump consistency.
Diffstat (limited to 'notmuch-dump.c')
| -rw-r--r-- | notmuch-dump.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/notmuch-dump.c b/notmuch-dump.c index eb629dc9..d7017929 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -361,16 +361,11 @@ notmuch_database_dump (notmuch_database_t *notmuch, } int -notmuch_dump_command (notmuch_config_t *config, unused(notmuch_database_t *notmuch), int argc, char *argv[]) +notmuch_dump_command (unused(notmuch_config_t *config), notmuch_database_t *notmuch , int argc, char *argv[]) { - notmuch_database_t *notmuch; const char *query_str = NULL; int ret; - if (notmuch_database_open (notmuch_config_get_database_path (config), - NOTMUCH_DATABASE_MODE_READ_WRITE, ¬much)) - return EXIT_FAILURE; - notmuch_exit_if_unmatched_db_uuid (notmuch); const char *output_file_name = NULL; |
