proc-cmdline: make proc_cmdline_get_bool() take flags
All other command line parsers takes flags. Let's make proc_cmdline_get_bool() also take flags. Though, currently, no flag is set by the caller.
This commit is contained in:
@@ -1650,7 +1650,7 @@ static int run(int argc, char *argv[]) {
|
||||
* opposed to some other file system tree/image) */
|
||||
|
||||
bool enabled;
|
||||
r = proc_cmdline_get_bool("systemd.firstboot", &enabled);
|
||||
r = proc_cmdline_get_bool("systemd.firstboot", /* flags = */ 0, &enabled);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to parse systemd.firstboot= kernel command line argument, ignoring: %m");
|
||||
if (r > 0 && !enabled) {
|
||||
|
||||
Reference in New Issue
Block a user