chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43343ee
)
import: Verb[] array can be static, too
author
Lennart Poettering
<lennart@poettering.net>
Fri, 19 Dec 2014 18:18:48 +0000
(19:18 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 19 Dec 2014 18:19:29 +0000
(19:19 +0100)
src/import/import.c
patch
|
blob
|
history
diff --git
a/src/import/import.c
b/src/import/import.c
index 9bade38c3a2ed90d57e229997e8c59eadb41e703..6fd3eeb2bcc67cd8148fe6636394bf2934f8647e 100644
(file)
--- 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 },
{}