diff options
| author | David Bremner <david@tethera.net> | 2021-02-27 10:07:45 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-04-06 21:32:36 -0300 |
| commit | 1c747a501c0ed7df5eaa2b994b9ad11d8981c62c (patch) | |
| tree | 2733f1196cab13dfe4b46eb577bb408f0646b9a0 /notmuch-config.c | |
| parent | ec4b7efbe4bd6d50bd6046bac5f7ef4ceaa30154 (diff) | |
CLI: drop notmuch_config_t from subcommand interface.
At this point it is unused in all subcommands.
Diffstat (limited to 'notmuch-config.c')
| -rw-r--r-- | notmuch-config.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/notmuch-config.c b/notmuch-config.c index 7aac8e94..34482b4e 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -578,7 +578,7 @@ _set_db_config (notmuch_database_t *notmuch, const char *key, int argc, char **a } static int -notmuch_config_command_set (unused(notmuch_config_t *config), notmuch_database_t *notmuch, +notmuch_config_command_set (notmuch_database_t *notmuch, int argc, char *argv[]) { char *group, *key; @@ -691,8 +691,7 @@ notmuch_config_command_list (notmuch_database_t *notmuch) } int -notmuch_config_command (notmuch_config_t *config, notmuch_database_t *notmuch, - int argc, char *argv[]) +notmuch_config_command (notmuch_database_t *notmuch, int argc, char *argv[]) { int ret; int opt_index; @@ -722,7 +721,7 @@ notmuch_config_command (notmuch_config_t *config, notmuch_database_t *notmuch, } ret = notmuch_config_command_get (notmuch, argv[1]); } else if (strcmp (argv[0], "set") == 0) { - ret = notmuch_config_command_set (config, notmuch, argc, argv); + ret = notmuch_config_command_set (notmuch, argc, argv); } else if (strcmp (argv[0], "list") == 0) { ret = notmuch_config_command_list (notmuch); } else { |
