chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
automount: implement automount unit type
[elogind.git]
/
target.c
diff --git
a/target.c
b/target.c
index e6f26f1412ad19ad63117a8603140d1a72b58852..176ab68c42f4d5f7ce2a601c3dffcd867f3d0028 100644
(file)
--- a/
target.c
+++ b/
target.c
@@
-37,15
+37,6
@@
static const char* const state_string_table[_TARGET_STATE_MAX] = {
[TARGET_ACTIVE] = "active"
};
[TARGET_ACTIVE] = "active"
};
-static void target_init(Unit *u) {
- Target *t = TARGET(u);
-
- assert(t);
- assert(u->meta.load_state == UNIT_STUB);
-
- t->state = 0;
-}
-
static void target_dump(Unit *u, FILE *f, const char *prefix) {
Target *t = TARGET(u);
static void target_dump(Unit *u, FILE *f, const char *prefix) {
Target *t = TARGET(u);
@@
-134,7
+125,6
@@
int target_get_runlevel(Target *t) {
const UnitVTable target_vtable = {
.suffix = ".target",
const UnitVTable target_vtable = {
.suffix = ".target",
- .init = target_init,
.load = unit_load_fragment_and_dropin,
.dump = target_dump,
.load = unit_load_fragment_and_dropin,
.dump = target_dump,