X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fsnapshot.c;h=a63eccd8de08477b058d82320126a39dad63d763;hp=a3f5e908ebcf9346a7a173a187ffe7e3fa0cce48;hb=44a6b1b68029833893f6e9cee35aa27a974038f6;hpb=2f79c10e9aef916efbcf29315eea8c25d0a50ac4 diff --git a/src/core/snapshot.c b/src/core/snapshot.c index a3f5e908e..a63eccd8d 100644 --- a/src/core/snapshot.c +++ b/src/core/snapshot.c @@ -173,13 +173,13 @@ static int snapshot_deserialize_item(Unit *u, const char *key, const char *value return 0; } -static UnitActiveState snapshot_active_state(Unit *u) { +_pure_ static UnitActiveState snapshot_active_state(Unit *u) { assert(u); return state_translation_table[SNAPSHOT(u)->state]; } -static const char *snapshot_sub_state_to_string(Unit *u) { +_pure_ static const char *snapshot_sub_state_to_string(Unit *u) { assert(u); return snapshot_state_to_string(SNAPSHOT(u)->state);