X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftimer.c;h=b01944ccdbd34ae81322c74c66977280f91fb00a;hb=18f593360bfbce6ab5f74d06a97238ff7171df79;hp=ff94b8c8693a70d659052e5c53eb0a5de02f095f;hpb=fdf20a316035779bbec469e11d73c7544acbf30f;p=elogind.git diff --git a/src/timer.c b/src/timer.c index ff94b8c86..b01944ccd 100644 --- a/src/timer.c +++ b/src/timer.c @@ -197,9 +197,9 @@ static void timer_enter_waiting(Timer *t, bool initial) { switch (v->base) { case TIMER_ACTIVE: - if (state_translation_table[t->state] == UNIT_ACTIVE) { + if (state_translation_table[t->state] == UNIT_ACTIVE) base = t->meta.inactive_exit_timestamp.monotonic; - } else + else base = n; break; @@ -430,7 +430,7 @@ void timer_unit_notify(Unit *u, UnitActiveState new_state) { case TIMER_DEAD: case TIMER_FAILED: - ; + break; default: assert_not_reached("Unknown timer state");