Switch default OpenFlow port from 975 and 976 to 6633.
[sliver-openvswitch.git] / utilities / vlogconf.c
index 838597d..006344b 100644 (file)
@@ -43,6 +43,7 @@
 
 #include "command-line.h"
 #include "compiler.h"
+#include "timeval.h"
 #include "util.h"
 #include "vlog-socket.h"
 
@@ -157,6 +158,7 @@ int main(int argc, char *argv[])
     size_t n_clients = 0;
 
     set_program_name(argv[0]);
+    time_init();
 
     short_options = long_options_to_short_options(long_options);
     for (;;) {
@@ -168,7 +170,7 @@ int main(int argc, char *argv[])
             break;
         }
         if (!strchr("ath", option) && n_clients == 0) {
-            fatal(0, "no targets specified (use --help for help)");
+            ofp_fatal(0, "no targets specified (use --help for help)");
         } else {
             ++n_actions;
         }
@@ -206,6 +208,9 @@ int main(int argc, char *argv[])
             usage(argv[0], EXIT_SUCCESS);
             break;
 
+        case '?':
+            exit(EXIT_FAILURE);
+
         default:
             NOT_REACHED();
         }