diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-06 02:43:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-06 02:43:58 +0200 |
commit | 23a177ef7c8c38c238ef06666f900f581b48298f (patch) | |
tree | 0e1467035854fea1a51c5efad2f69464ac2d402b /timer.c | |
parent | 5af98f828476716954f327c479c4cf6321ae3fe4 (diff) |
rework merging/loading logic
Diffstat (limited to 'timer.c')
-rw-r--r-- | timer.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -30,19 +30,6 @@ static void timer_done(Unit *u) { assert(t); } -static int timer_init(Unit *u) { - int r; - - assert(u); - - /* Make sure this config file actually exists */ - - if ((r = unit_load_fragment_and_dropin(u)) <= 0) - return r < 0 ? r : -ENOENT; - - return 0; -} - static UnitActiveState timer_active_state(Unit *u) { static const UnitActiveState table[_TIMER_STATE_MAX] = { @@ -57,7 +44,7 @@ static UnitActiveState timer_active_state(Unit *u) { const UnitVTable timer_vtable = { .suffix = ".timer", - .init = timer_init, + .init = unit_load_fragment_and_dropin, .done = timer_done, .active_state = timer_active_state |