]> git.notmuchmail.org Git - notmuch/blobdiff - test/symbol-test.cc
lib/cli: Make notmuch_database_open return a status code
[notmuch] / test / symbol-test.cc
index 1548ca400a544f3ddb325ce02826de1531cf602d..3e96c034e13e94412285bcde6dd2d74e870993d2 100644 (file)
@@ -4,7 +4,8 @@
 
 
 int main() {
-  (void) notmuch_database_open("fakedb", NOTMUCH_DATABASE_MODE_READ_ONLY);
+  notmuch_database_t *notmuch;
+  notmuch_database_open("fakedb", NOTMUCH_DATABASE_MODE_READ_ONLY, &notmuch);
 
   try {
     (void) new Xapian::WritableDatabase("./nonexistant", Xapian::DB_OPEN);