X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zlint%2Fmain.cpp;h=80a1560c8fe6c446118dea1f9e4b04618bb08215;hb=32a5aaaa9a78f9ee028090496a85c3aa8526ea27;hp=7e34e64af6099f57c7757e233212c5ab802d6f30;hpb=eea2caea1263bed0aae268f72d985cbb1822ac30;p=yazpp-moved-to-github.git diff --git a/zlint/main.cpp b/zlint/main.cpp index 7e34e64..80a1560 100644 --- a/zlint/main.cpp +++ b/zlint/main.cpp @@ -1,7 +1,10 @@ +#if HAVE_CONFIG_H +#include +#endif #include -#include -#include +#include +#include #include @@ -9,11 +12,11 @@ int main(int argc, char **argv) { 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); @@ -46,7 +49,16 @@ int main(int argc, char **argv) z.add_test(&scan01); while (mySocketManager.processEvent() > 0) - ; + ; exit (0); } +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +