From: Yu Watanabe Date: Mon, 12 Mar 2018 05:05:08 +0000 (+0900) Subject: networkctl,hwdb: make verbs static X-Git-Tag: v239~530^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15c3626e069b67e0168d00b643b2cc36f2247a3e;p=thirdparty%2Fsystemd.git networkctl,hwdb: make verbs static --- diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c index f27f60e9777..f579ef737ef 100644 --- a/src/hwdb/hwdb.c +++ b/src/hwdb/hwdb.c @@ -753,7 +753,7 @@ static int parse_argv(int argc, char *argv[]) { } static int hwdb_main(int argc, char *argv[]) { - const Verb verbs[] = { + static const Verb verbs[] = { { "update", 1, 1, 0, hwdb_update }, { "query", 2, 2, 0, hwdb_query }, {}, diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 14d8ecb03fd..50317e948dc 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -1156,11 +1156,11 @@ static int parse_argv(int argc, char *argv[]) { } static int networkctl_main(int argc, char *argv[]) { - const Verb verbs[] = { - { "list", VERB_ANY, VERB_ANY, VERB_DEFAULT, list_links }, - { "status", VERB_ANY, VERB_ANY, 0, link_status }, - { "lldp", VERB_ANY, VERB_ANY, 0, link_lldp_status }, - { "label", VERB_ANY, VERB_ANY, 0, list_address_labels}, + static const Verb verbs[] = { + { "list", VERB_ANY, VERB_ANY, VERB_DEFAULT, list_links }, + { "status", VERB_ANY, VERB_ANY, 0, link_status }, + { "lldp", VERB_ANY, VERB_ANY, 0, link_lldp_status }, + { "label", VERB_ANY, VERB_ANY, 0, list_address_labels }, {} };