aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-04-05 22:24:42 +0900
committerDavid Bremner <david@tethera.net>2015-06-01 07:32:54 +0200
commit1d4321ffa58ea9fab2f3069521d4dfb5e7ed0ce3 (patch)
treef0100637e8981dcb5b2429d941fb6344b3c746b5
parentd08af93c65310c2d5ec8033040854f8ff4e5550f (diff)
cli: ignore config argument of notmuch_help_command
We call it with NULL at one point anyway, so it needs to work with NULL. Since the only place we use talloc is right before exec, there is no harm in always using NULL.
-rw-r--r--notmuch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/notmuch.c b/notmuch.c
index e5c2aeb3..f81922ed 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -177,7 +177,7 @@ exec_man (const char *page)
}
static int
-notmuch_help_command (notmuch_config_t *config, int argc, char *argv[])
+notmuch_help_command (unused (notmuch_config_t * config), int argc, char *argv[])
{
command_t *command;
help_topic_t *topic;
@@ -202,14 +202,14 @@ notmuch_help_command (notmuch_config_t *config, int argc, char *argv[])
command = find_command (argv[0]);
if (command) {
- char *page = talloc_asprintf (config, "notmuch-%s", command->name);
+ char *page = talloc_asprintf (NULL, "notmuch-%s", command->name);
exec_man (page);
}
for (i = 0; i < ARRAY_SIZE (help_topics); i++) {
topic = &help_topics[i];
if (strcmp (argv[0], topic->name) == 0) {
- char *page = talloc_asprintf (config, "notmuch-%s", topic->name);
+ char *page = talloc_asprintf (NULL, "notmuch-%s", topic->name);
exec_man (page);
}
}