summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 99f7d6832f..e139c4b191 100644
--- a/main.c
+++ b/main.c
@@ -10,7 +10,7 @@
int main(int argc, char *argv[]) {
Manager *m = NULL;
- Name *target = NULL;
+ Unit *target = NULL;
Job *job = NULL;
int r, retval = 1;
@@ -21,7 +21,7 @@ int main(int argc, char *argv[]) {
goto finish;
}
- if ((r = manager_load_name(m, "default.target", &target)) < 0) {
+ if ((r = manager_load_unit(m, "default.target", &target)) < 0) {
log_error("Failed to load default target: %s", strerror(-r));
goto finish;
}
@@ -31,8 +31,8 @@ int main(int argc, char *argv[]) {
goto finish;
}
- printf("→ By names:\n");
- manager_dump_names(m, stdout, "\t");
+ printf("→ By units:\n");
+ manager_dump_units(m, stdout, "\t");
printf("→ By jobs:\n");
manager_dump_jobs(m, stdout, "\t");