From 1c2e9646e4a1720fc8ad35c705c195ae1a2c5ce0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 30 Apr 2015 01:29:00 +0200 Subject: 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. --- src/core/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/swap.c') diff --git a/src/core/swap.c b/src/core/swap.c index ae45b80967..a9834a7fe5 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -1407,7 +1407,7 @@ static int swap_get_timeout(Unit *u, uint64_t *timeout) { return 1; } -static bool swap_supported(Manager *m) { +static bool swap_supported(void) { static int supported = -1; /* If swap support is not available in the kernel, or we are -- cgit v1.2.3-54-g00ecf