]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: remove unused parameter
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 14 Mar 2022 10:42:57 +0000 (11:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 09:22:20 +0000 (10:22 +0100)
src/systemctl/systemctl-enable.c

index 52c3ca75f0e05dc2217a7be176080c34d7343368..9fb935cc5ecb075f5eca50da083874fff9c6915e 100644 (file)
@@ -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;
         }