From e76f6517de020783d828be59f461f1d4f465c4b4 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 3 Mar 2013 23:55:08 +0200 Subject: cli: config: make notmuch_config_open() "is new" parameter input only We now have a notmuch_config_is_new() function to query whether a config was created or not. Change the notmuch_config_open() is_new parameter into boolean create_new to determine whether the function should create a new config if one doesn't exist. This reduces the complexity of the API. --- notmuch-search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'notmuch-search.c') diff --git a/notmuch-search.c b/notmuch-search.c index 0b0a879e..fac6663f 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -371,7 +371,7 @@ notmuch_search_command (void *ctx, int argc, char *argv[]) notmuch_exit_if_unsupported_format (); - config = notmuch_config_open (ctx, NULL, NULL); + config = notmuch_config_open (ctx, NULL, FALSE); if (config == NULL) return 1; -- cgit v1.2.3