]> git.cworth.org Git - notmuch/commitdiff
ruby: use database_open_with_config
authorFelipe Contreras <felipe.contreras@gmail.com>
Thu, 23 Mar 2023 02:05:22 +0000 (20:05 -0600)
committerDavid Bremner <david@tethera.net>
Fri, 31 Mar 2023 10:53:00 +0000 (07:53 -0300)
Fixes warning:

  warning: ‘notmuch_database_open’ is deprecated: function deprecated as of libnotmuch 5.4

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
bindings/ruby/database.c

index 9c3dbd96f0b292f856c2ccca2448b8483503a568..a78d508b2a17f1eb32ac08ea049b6b943ffb9191 100644 (file)
@@ -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");