mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-23 11:28:13 +01:00
ruby: use database_open_with_config
Fixes warning: warning: ‘notmuch_database_open’ is deprecated: function deprecated as of libnotmuch 5.4 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
a95959c491
commit
83ea220178
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ notmuch_rb_database_initialize (int argc, VALUE *argv, VALUE self)
|
|||
if (create)
|
||||
ret = notmuch_database_create (path, &database);
|
||||
else
|
||||
ret = notmuch_database_open (path, mode, &database);
|
||||
ret = notmuch_database_open_with_config (path, mode, NULL, NULL, &database, NULL);
|
||||
notmuch_rb_status_raise (ret);
|
||||
|
||||
DATA_PTR (self) = notmuch_rb_object_create (database, "notmuch_rb_database");
|
||||
|
|
Loading…
Reference in a new issue