Avoid inserting duplicate iptables rules when restarting vswitch.
[openvswitch] / utilities / ovs-appctl.c
index 742603bda999152bf5071697100259545cb9e8be..88ecfe324ac4934dd8602825ae3c621d1571453b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009, 2010 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -85,7 +85,7 @@ usage(void)
            "usage: %s [TARGET] COMMAND [ARG...]\n"
            "Targets:\n"
            "  -t, --target=TARGET  pidfile or socket to contact\n"
-           "Common commands:"
+           "Common commands:\n"
            "  help               List commands supported by the target\n"
            "  vlog/list          List current logging levels\n"
            "  vlog/set MODULE[:FACILITY[:LEVEL]]\n"
@@ -109,7 +109,7 @@ parse_command_line(int argc, char *argv[])
         {"execute", no_argument, NULL, 'e'},
         {"help", no_argument, NULL, 'h'},
         {"version", no_argument, NULL, 'V'},
-        {0, 0, 0, 0},
+        {NULL, 0, NULL, 0},
     };
     const char *target;
     int e_options;