X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-config.c;fp=notmuch-config.c;h=cefb827478b64c41a2f37a68841adf2037e37c01;hp=19c2ddb36a292d1687c61d98d7072e10753029fb;hb=867d7352a76e0a8a46e64a035f23edcf7d6f49e4;hpb=39580e2d7fde7fbb1d837d49c0b3f675f706e123 diff --git a/notmuch-config.c b/notmuch-config.c index 19c2ddb3..cefb8274 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -324,7 +324,7 @@ get_config_from_file (notmuch_config_t *config, bool create_new) notmuch_config_t * notmuch_config_open (void *ctx, const char *filename, - notmuch_config_mode_t config_mode) + notmuch_command_mode_t config_mode) { GError *error = NULL; size_t tmp; @@ -359,8 +359,8 @@ notmuch_config_open (void *ctx, config->key_file = g_key_file_new (); - if (config_mode & NOTMUCH_CONFIG_OPEN) { - bool create_new = (config_mode & NOTMUCH_CONFIG_CREATE) != 0; + if (config_mode & NOTMUCH_COMMAND_CONFIG_OPEN) { + bool create_new = (config_mode & NOTMUCH_COMMAND_CONFIG_CREATE) != 0; if (! get_config_from_file (config, create_new)) { talloc_free (config);