diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-26 21:39:06 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-26 21:39:06 +0100 |
commit | 87f0e418cf2c58b3201d06a60e3696ec672d2662 (patch) | |
tree | a27ef34fdf69505d983852d36d200b6e590726df /main.c | |
parent | fd79db6a5df0f94c48736ce5aa0131d6ab108fb0 (diff) |
s/name/unit
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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"); |