chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch from udev keymaps to hwdb
[elogind.git]
/
src
/
core
/
target.c
diff --git
a/src/core/target.c
b/src/core/target.c
index 981424132be6435129fe0911f30583fca80b8dca..3fffa0d2f5ff0f4dfdb56845568618513dbfc8ce 100644
(file)
--- a/
src/core/target.c
+++ b/
src/core/target.c
@@
-184,13
+184,13
@@
static int target_deserialize_item(Unit *u, const char *key, const char *value,
return 0;
}
return 0;
}
-static UnitActiveState target_active_state(Unit *u) {
+
_pure_
static UnitActiveState target_active_state(Unit *u) {
assert(u);
return state_translation_table[TARGET(u)->state];
}
assert(u);
return state_translation_table[TARGET(u)->state];
}
-static const char *target_sub_state_to_string(Unit *u) {
+
_pure_
static const char *target_sub_state_to_string(Unit *u) {
assert(u);
return target_state_to_string(TARGET(u)->state);
assert(u);
return target_state_to_string(TARGET(u)->state);