buildconf.sh --disable-shared --enable-static
[yazpp-moved-to-github.git] / zlint / main.cpp
index 038e6f7..9dc8aab 100644 (file)
@@ -1,17 +1,19 @@
-#include <yaz++/pdu-assoc.h>
-#include <yaz++/socket-manager.h>
+#include <stdlib.h>
+
+#include <yazpp/pdu-assoc.h>
+#include <yazpp/socket-manager.h>
 
 #include <zlint.h>
 
 int main(int argc, char **argv)
 {
-    Yaz_SocketManager mySocketManager;
-    Zlint z(new Yaz_PDU_Assoc(&mySocketManager));
+    SocketManager mySocketManager;
+    Zlint z(new PDU_Assoc(&mySocketManager));
  
     if (argc > 1)
-       z.set_host(argv[1]);
+        z.set_host(argv[1]);
     else
-       z.set_host("localhost:9999");
+        z.set_host("localhost:9999");
 
     Zlint_test_init_01 t01;
     z.add_test(&t01);
@@ -44,7 +46,15 @@ int main(int argc, char **argv)
     z.add_test(&scan01);
 
     while (mySocketManager.processEvent() > 0)
-       ;
+        ;
     exit (0);
 }
 
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+