summaryrefslogtreecommitdiff
path: root/src/core/busname.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-30 01:29:00 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-30 01:29:00 +0200
commit1c2e9646e4a1720fc8ad35c705c195ae1a2c5ce0 (patch)
tree3d7f61210c0b45fb1f1fa61629c2b5825a0c43e9 /src/core/busname.c
parent524d896ac17518b824b2c94b3b0b2a23c23da08f (diff)
core: simplify unit type detection logic
Introduce a new call unit_type_supported() and make use of it everywhere. Also, drop Manager parameter from per-type supported method prototype.
Diffstat (limited to 'src/core/busname.c')
-rw-r--r--src/core/busname.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/busname.c b/src/core/busname.c
index 94db122633..20d49fe3e9 100644
--- a/src/core/busname.c
+++ b/src/core/busname.c
@@ -984,9 +984,8 @@ static int busname_get_timeout(Unit *u, uint64_t *timeout) {
return 1;
}
-static bool busname_supported(Manager *m) {
+static bool busname_supported(void) {
static int supported = -1;
- assert(m);
if (supported < 0)
supported = access("/sys/fs/kdbus", F_OK) >= 0;