diff options
| author | David Bremner <david@tethera.net> | 2020-12-21 08:55:14 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-02-06 19:05:19 -0400 |
| commit | 319efe21c9d2754c99951cecc71184faf7ca9054 (patch) | |
| tree | a7295353f62f3773fec4ca3663c292fc496c5cd0 /notmuch-search.c | |
| parent | 06a64cf0aa2bc3de083d0c317726863ebeed504f (diff) | |
CLI: add (unused) database argument to subcommands.
This will allow transitioning individual subcommands to the new
configuration framework. Eventually when they are all converted we can
remove the notmuch_config_t * argument.
For now, live with the parameter shadowing in some some subcommands;
it will go away when they are converted.
Diffstat (limited to 'notmuch-search.c')
| -rw-r--r-- | notmuch-search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch-search.c b/notmuch-search.c index 2805d960..34e27058 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -805,7 +805,7 @@ static const notmuch_opt_desc_t common_options[] = { }; int -notmuch_search_command (notmuch_config_t *config, int argc, char *argv[]) +notmuch_search_command (notmuch_config_t *config, unused(notmuch_database_t *notmuch), int argc, char *argv[]) { search_context_t *ctx = &search_context; int opt_index, ret; @@ -871,7 +871,7 @@ notmuch_search_command (notmuch_config_t *config, int argc, char *argv[]) } int -notmuch_address_command (notmuch_config_t *config, int argc, char *argv[]) +notmuch_address_command (notmuch_config_t *config, unused(notmuch_database_t *notmuch), int argc, char *argv[]) { search_context_t *ctx = &search_context; int opt_index, ret; |
