mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-09 02:01:42 +01:00
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:
parent
e7bb7919a2
commit
c7705fb95e
1 changed files with 6 additions and 4 deletions
|
@ -590,10 +590,12 @@ 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,
|
||||||
¬much,
|
"",
|
||||||
&message);
|
NULL,
|
||||||
|
¬much,
|
||||||
|
&message);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if (status_cb) status_cb (message, closure);
|
if (status_cb) status_cb (message, closure);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue