mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 05:34:11 +01:00
Whitespaces cleanup.
This commit is contained in:
parent
071456e5e6
commit
0da10aa1bc
1 changed files with 7 additions and 6 deletions
|
@ -1,16 +1,17 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <xapian.h>
|
#include <xapian.h>
|
||||||
#include <notmuch.h>
|
#include <notmuch.h>
|
||||||
int main (){
|
|
||||||
|
|
||||||
(void)notmuch_database_open ("fakedb",
|
|
||||||
NOTMUCH_DATABASE_MODE_READ_ONLY);
|
|
||||||
|
|
||||||
try{
|
int main() {
|
||||||
(void)new Xapian::WritableDatabase ("./nonexistant", Xapian::DB_OPEN);
|
(void) notmuch_database_open("fakedb", NOTMUCH_DATABASE_MODE_READ_ONLY);
|
||||||
|
|
||||||
|
try {
|
||||||
|
(void) new Xapian::WritableDatabase("./nonexistant", Xapian::DB_OPEN);
|
||||||
} catch (const Xapian::Error &error) {
|
} catch (const Xapian::Error &error) {
|
||||||
printf("caught %s\n",error.get_msg().c_str());
|
printf("caught %s\n", error.get_msg().c_str());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue