diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-02-19 18:21:17 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-02-21 20:40:57 +0100 |
commit | 1fb82beb38b6fc98b68b5adbb1232c27d0b64c60 (patch) | |
tree | 72690bae7d428f3c3d5a4bbe089c85cb8d8a2989 /src/network/networkctl.c | |
parent | 0070333f26543a319a17aee8b22bdde4071630c4 (diff) |
networkctl: fix dispatch_verb() table
VERB_DEFAULT may only appear once.
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 058fc864b6..0c5a303174 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -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 }, {} }; |