From: Zbigniew Jędrzejewski-Szmek Date: Mon, 14 Mar 2022 10:42:57 +0000 (+0100) Subject: systemctl: remove unused parameter X-Git-Tag: v251-rc1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20afd9a184eba4c358ff6470e0e6deb441b1095f;p=thirdparty%2Fsystemd.git systemctl: remove unused parameter --- diff --git a/src/systemctl/systemctl-enable.c b/src/systemctl/systemctl-enable.c index 52c3ca75f0e..9fb935cc5ec 100644 --- a/src/systemctl/systemctl-enable.c +++ b/src/systemctl/systemctl-enable.c @@ -39,7 +39,7 @@ static int normalize_filenames(char **names) { return 0; } -static int normalize_names(char **names, bool warn_if_path) { +static int normalize_names(char **names) { char **u; bool was_path = false; @@ -56,7 +56,7 @@ static int normalize_names(char **names, bool warn_if_path) { was_path = true; } - if (warn_if_path && was_path) + if (was_path) log_warning("Warning: Can't execute disable on the unit file path. Proceeding with the unit name."); return 0; @@ -92,7 +92,7 @@ int verb_enable(int argc, char *argv[], void *userdata) { } if (streq(verb, "disable")) { - r = normalize_names(names, true); + r = normalize_names(names); if (r < 0) return r; }