From: Zbigniew Jędrzejewski-Szmek Date: Thu, 16 Apr 2026 07:20:31 +0000 (+0200) Subject: firstboot: use parse_boolean_argument in one more place X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=086daddfdf12c6bd746159aed011dd2f5c00993b;p=thirdparty%2Fsystemd.git firstboot: use parse_boolean_argument in one more place This was pointed out in review. --- diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index 22c6a42eb97..ea4dd5f1840 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -41,7 +41,6 @@ #include "options.h" #include "os-util.h" #include "parse-argument.h" -#include "parse-util.h" #include "password-quality-util.h" #include "path-util.h" #include "plymouth-util.h" @@ -1465,11 +1464,9 @@ static int parse_argv(int argc, char *argv[]) { break; OPTION_LONG("welcome", "BOOL", "Whether to show the welcome text"): - r = parse_boolean(arg); + r = parse_boolean_argument("--welcome=", arg, &arg_welcome); if (r < 0) - return log_error_errno(r, "Failed to parse --welcome= argument: %s", arg); - - arg_welcome = r; + return r; break; OPTION_LONG("chrome", "BOOL",