lib/compact: replace deprecated notmuch_database_open_verbose

It should not be necesary to have any config information here, hence
passing "" to n_d_open_with_config.
This commit is contained in:
David Bremner 2021-10-23 09:27:01 -03:00
parent e7bb7919a2
commit c7705fb95e

View file

@ -590,8 +590,10 @@ notmuch_database_compact (const char *path,
notmuch_database_t *notmuch = NULL; notmuch_database_t *notmuch = NULL;
char *message = NULL; char *message = NULL;
ret = notmuch_database_open_verbose (path, ret = notmuch_database_open_with_config (path,
NOTMUCH_DATABASE_MODE_READ_WRITE, NOTMUCH_DATABASE_MODE_READ_WRITE,
"",
NULL,
&notmuch, &notmuch,
&message); &message);
if (ret) { if (ret) {