summaryrefslogtreecommitdiff
path: root/src/timer.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-19 16:55:49 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-19 16:55:49 +0200
commit4cd1fbcc0648a289e9bf9d9047621bbdf7ec0ece (patch)
treeb4442600eb49703950251cd30274eedea48c4ecc /src/timer.c
parentbb00e604097fba830af1dc078d78aff278dfcd37 (diff)
unit: get rid of various unnecessary casts
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c
index 7bf2d10238..ead8ab92a4 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -60,7 +60,7 @@ static void timer_done(Unit *u) {
static int timer_verify(Timer *t) {
assert(t);
- if (UNIT(t)->meta.load_state != UNIT_LOADED)
+ if (t->meta.load_state != UNIT_LOADED)
return 0;
if (!t->values) {
@@ -258,7 +258,7 @@ static void timer_enter_running(Timer *t) {
int r;
assert(t);
- if ((r = manager_add_job(UNIT(t)->meta.manager, JOB_START, t->unit, JOB_REPLACE, true, NULL)) < 0)
+ if ((r = manager_add_job(t->meta.manager, JOB_START, t->unit, JOB_REPLACE, true, NULL)) < 0)
goto fail;
timer_set_state(t, TIMER_RUNNING);