From: Lennart Poettering Date: Fri, 19 Dec 2014 18:18:48 +0000 (+0100) Subject: import: Verb[] array can be static, too X-Git-Tag: v219~901 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=7eeeb28e45ae4d436bdccad1d519cfcb81c0762d import: Verb[] array can be static, too --- diff --git a/src/import/import.c b/src/import/import.c index 9bade38c3..6fd3eeb2b 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -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 }, {}