summaryrefslogtreecommitdiff
path: root/target.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-26 21:39:06 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-26 21:39:06 +0100
commit87f0e418cf2c58b3201d06a60e3696ec672d2662 (patch)
treea27ef34fdf69505d983852d36d200b6e590726df /target.c
parentfd79db6a5df0f94c48736ce5aa0131d6ab108fb0 (diff)
s/name/unit
Diffstat (limited to 'target.c')
-rw-r--r--target.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/target.c b/target.c
index 12a219295b..6754676b9b 100644
--- a/target.c
+++ b/target.c
@@ -1,25 +1,25 @@
/*-*- Mode: C; c-basic-offset: 8 -*-*/
-#include "name.h"
+#include "unit.h"
#include "target.h"
#include "load-fragment.h"
-static void target_done(Name *n) {
- Target *m = TARGET(n);
+static void target_done(Unit *u) {
+ Target *m = TARGET(u);
assert(m);
/* Nothing here for now */
}
-static NameActiveState target_active_state(Name *n) {
- return TARGET(n)->state == TARGET_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
+static UnitActiveState target_active_state(Unit *u) {
+ return TARGET(u)->state == TARGET_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE;
}
-const NameVTable target_vtable = {
+const UnitVTable target_vtable = {
.suffix = ".target",
- .init = name_load_fragment,
+ .init = unit_load_fragment,
.done = target_done,
.active_state = target_active_state