import: Verb[] array can be static, too

This commit is contained in:
Lennart Poettering 2014-12-19 19:18:48 +01:00
parent 43343ee7c2
commit 7eeeb28e45
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ static int parse_argv(int argc, char *argv[]) {
switch (c) {
case 'h':
return help(argc, argv, NULL);
return help(0, NULL, NULL);
case ARG_VERSION:
puts(PACKAGE_STRING);
@ -186,7 +186,7 @@ static int parse_argv(int argc, char *argv[]) {
static int import_main(int argc, char *argv[]) {
const Verb verbs[] = {
static const Verb verbs[] = {
{ "help", VERB_ANY, VERB_ANY, 0, help },
{ "pull-dck", 2, 3, 0, pull_dck },
{}