tree-wide: allow state to be passed through to parse_proc_cmdline_item
No functional change.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user