]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: list-dependencies: pass bool where appropriate
authorMike Yuan <me@yhndnzj.com>
Fri, 13 Jan 2023 08:15:32 +0000 (16:15 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 13 Jan 2023 08:15:32 +0000 (16:15 +0800)
src/systemctl/systemctl-list-dependencies.c

index 86d1c5b7c299d41c3a3cfbce6112005ea3fca2b5..91b8ac6bff2382798be393830499d7417679fbfd 100644 (file)
@@ -83,7 +83,7 @@ static int list_dependencies_one(
                 if (strv_contains(*units, *c)) {
                         if (!arg_plain) {
                                 printf("  ");
-                                r = list_dependencies_print("...", level + 1, (branches << 1) | (c[1] == NULL ? 0 : 1), 1);
+                                r = list_dependencies_print("...", level + 1, (branches << 1) | (c[1] == NULL ? 0 : 1), /* last = */ true);
                                 if (r < 0)
                                         return r;
                         }