projects
/
platform
/
upstream
/
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
058fc86
..
0c5a303
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 },
{}
};