Whitespaces cleanup.
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Fri, 25 Nov 2011 15:34:48 +0000 (16:34 +0100)
committerDavid Bremner <bremner@debian.org>
Sat, 26 Nov 2011 17:21:04 +0000 (09:21 -0800)
test/symbol-test.cc

index ec250b2de34aa3aa12663430ed87b194ca1f32f6..1548ca400a544f3ddb325ce02826de1531cf602d 100644 (file)
@@ -1,16 +1,17 @@
 #include <stdio.h>
 #include <xapian.h>
 #include <notmuch.h>
-int main (){
 
-  (void)notmuch_database_open ("fakedb",
-                                    NOTMUCH_DATABASE_MODE_READ_ONLY);
 
-  try{
-    (void)new Xapian::WritableDatabase ("./nonexistant",                                       Xapian::DB_OPEN);
+int main() {
+  (void) notmuch_database_open("fakedb", NOTMUCH_DATABASE_MODE_READ_ONLY);
+
+  try {
+    (void) new Xapian::WritableDatabase("./nonexistant", Xapian::DB_OPEN);
   } 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 1;
 }