projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0070333
)
networkctl: fix dispatch_verb() table
author
Lennart Poettering
<lennart@poettering.net>
Fri, 19 Feb 2016 17:21:17 +0000
(18:21 +0100)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/network/networkctl.c
b/src/network/networkctl.c
index 058fc864b635894b6e011e4e2f1629bed07fbef8..0c5a3031740cb8ea3cb5c59e2b1a3f6e909f7320 100644
(file)
--- 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 },
{}
};