chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: implement parse_pid() function
[elogind.git]
/
src
/
timer.c
diff --git
a/src/timer.c
b/src/timer.c
index b025051f2b77a0d3000b45af545a9cd1a2542d3b..7bf2d1023892338488261ea23399d6a8dd385ded 100644
(file)
--- a/
src/timer.c
+++ b/
src/timer.c
@@
-31,7
+31,7
@@
static const UnitActiveState state_translation_table[_TIMER_STATE_MAX] = {
[TIMER_WAITING] = UNIT_ACTIVE,
[TIMER_RUNNING] = UNIT_ACTIVE,
[TIMER_ELAPSED] = UNIT_ACTIVE,
[TIMER_WAITING] = UNIT_ACTIVE,
[TIMER_RUNNING] = UNIT_ACTIVE,
[TIMER_ELAPSED] = UNIT_ACTIVE,
- [TIMER_MAINT
AI
NANCE] = UNIT_INACTIVE
+ [TIMER_MAINT
E
NANCE] = UNIT_INACTIVE
};
static void timer_init(Unit *u) {
};
static void timer_init(Unit *u) {
@@
-167,7
+167,7
@@
static void timer_enter_dead(Timer *t, bool success) {
if (!success)
t->failure = true;
if (!success)
t->failure = true;
- timer_set_state(t, t->failure ? TIMER_MAINT
AI
NANCE : TIMER_DEAD);
+ timer_set_state(t, t->failure ? TIMER_MAINT
E
NANCE : TIMER_DEAD);
}
static void timer_enter_waiting(Timer *t, bool initial) {
}
static void timer_enter_waiting(Timer *t, bool initial) {
@@
-273,7
+273,7
@@
static int timer_start(Unit *u) {
Timer *t = TIMER(u);
assert(t);
Timer *t = TIMER(u);
assert(t);
- assert(t->state == TIMER_DEAD || t->state == TIMER_MAINT
AI
NANCE);
+ assert(t->state == TIMER_DEAD || t->state == TIMER_MAINT
E
NANCE);
if (t->unit->meta.load_state != UNIT_LOADED)
return -ENOENT;
if (t->unit->meta.load_state != UNIT_LOADED)
return -ENOENT;
@@
-409,7
+409,7
@@
void timer_unit_notify(Unit *u, UnitActiveState new_state) {
break;
case TIMER_DEAD:
break;
case TIMER_DEAD:
- case TIMER_MAINT
AI
NANCE:
+ case TIMER_MAINT
E
NANCE:
;
default:
;
default:
@@
-428,7
+428,7
@@
static const char* const timer_state_table[_TIMER_STATE_MAX] = {
[TIMER_WAITING] = "waiting",
[TIMER_RUNNING] = "running",
[TIMER_ELAPSED] = "elapsed",
[TIMER_WAITING] = "waiting",
[TIMER_RUNNING] = "running",
[TIMER_ELAPSED] = "elapsed",
- [TIMER_MAINT
AINANCE] = "maintai
nance"
+ [TIMER_MAINT
ENANCE] = "mainte
nance"
};
DEFINE_STRING_TABLE_LOOKUP(timer_state, TimerState);
};
DEFINE_STRING_TABLE_LOOKUP(timer_state, TimerState);