[PATCH 2/2] lib/open: replace call to deprecated notmuch_database_open_verbose

Subject: [PATCH 2/2] lib/open: replace call to deprecated notmuch_database_open_verbose

Date: Sat, 23 Oct 2021 09:27:02 -0300

To: notmuch@notmuchmail.org

Cc: David Bremner

From: David Bremner


Essentially inline the existing shim definition of
notmuch_database_open_verbose.
---
 lib/open.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/open.cc b/lib/open.cc
index 8a835e98..86faf1d9 100644
--- a/lib/open.cc
+++ b/lib/open.cc
@@ -19,9 +19,8 @@ notmuch_database_open (const char *path,
     char *status_string = NULL;
     notmuch_status_t status;
 
-    status = notmuch_database_open_verbose (path, mode, database,
-					    &status_string);
-
+    status = notmuch_database_open_with_config (path, mode, "", NULL,
+						database, &status_string);
     if (status_string) {
 	fputs (status_string, stderr);
 	free (status_string);
-- 
2.33.0
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: