diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-28 17:14:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-31 13:20:43 +0200 |
commit | 35b7ff80e29524cb01f881ca6d52c669970c88f1 (patch) | |
tree | b041bd8084e481a38760152ebf97579656b2c478 /src/core/unit.c | |
parent | 6513d561ce4c894ea4e29612a2ed62c8310a164f (diff) |
unit: add new macros to test for unit contexts
Diffstat (limited to 'src/core/unit.c')
-rw-r--r-- | src/core/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index a6b56e2998..2ad49fd50b 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -1122,7 +1122,7 @@ static int unit_add_target_dependencies(Unit *u) { static int unit_add_slice_dependencies(Unit *u) { assert(u); - if (!unit_get_cgroup_context(u)) + if (!UNIT_HAS_CGROUP_CONTEXT(u)) return 0; if (UNIT_ISSET(u->slice)) |