tree-wide: allow state to be passed through to parse_proc_cmdline_item

No functional change.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-10-22 14:24:52 -04:00
parent 863a5610c7
commit 96287a4916
14 changed files with 30 additions and 27 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ static char **arg_mask = NULL;
static char **arg_wants = NULL;
static bool arg_debug_shell = false;
static int parse_proc_cmdline_item(const char *key, const char *value) {
static int parse_proc_cmdline_item(const char *key, const char *value, void *data) {
int r;
assert(key);
@@ -178,7 +178,7 @@ int main(int argc, char *argv[]) {
goto finish;
}
r = parse_proc_cmdline(parse_proc_cmdline_item);
r = parse_proc_cmdline(parse_proc_cmdline_item, NULL);
if (r < 0)
log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");