]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl: fix dispatch_verb() table
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Feb 2016 17:21:17 +0000 (18:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Feb 2016 19:40:57 +0000 (20:40 +0100)
VERB_DEFAULT may only appear once.

src/network/networkctl.c

index 058fc864b635894b6e011e4e2f1629bed07fbef8..0c5a3031740cb8ea3cb5c59e2b1a3f6e909f7320 100644 (file)
@@ -956,9 +956,9 @@ static int parse_argv(int argc, char *argv[]) {
 
 static int networkctl_main(int argc, char *argv[]) {
         const Verb verbs[] = {
-                { "list", VERB_ANY, 1, VERB_DEFAULT, list_links },
-                { "status", 1, VERB_ANY, 0, link_status },
-                { "lldp", VERB_ANY, 1, VERB_DEFAULT, link_lldp_status },
+                { "list",   VERB_ANY, 1,        VERB_DEFAULT, list_links       },
+                { "status", VERB_ANY, VERB_ANY, 0,            link_status      },
+                { "lldp",   VERB_ANY, 1,        0,            link_lldp_status },
                 {}
         };