]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl,hwdb: make verbs static
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 Mar 2018 05:05:08 +0000 (14:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Mar 2018 12:03:35 +0000 (21:03 +0900)
src/hwdb/hwdb.c
src/network/networkctl.c

index f27f60e9777d599e99e1e78caf72fa0cd0301b5c..f579ef737efda3829f51e0ee998328350f975e8c 100644 (file)
@@ -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  },
                 {},
index 14d8ecb03fd173a3928f825e0a7b7d7216d634a2..50317e948dcd98d40120af271f4ef6dfdaabecc9 100644 (file)
@@ -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 },
                 {}
         };