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:
Yu Watanabe
2023-08-09 17:46:41 +09:00
parent ca15b59f1f
commit 3787934b54
11 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -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) {