summaryrefslogtreecommitdiff
path: root/src/core/cgroup.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-06-30 21:30:35 +0200
committerGitHub <noreply@github.com>2016-06-30 21:30:35 +0200
commitf15461b2b234c178ecbbc18defaef0032a9b3431 (patch)
tree81faab6f15ff44393c55484d216fd2e80b993bbf /src/core/cgroup.c
parent17c22746b176f2e544d33bdaf30b282ce2c88933 (diff)
parent1c6c037cece7add31e4017ea7775ddb32d4fe7ec (diff)
Merge pull request #3596 from poettering/machine-clean
make "machinectl clean" asynchronous, and open it up via PolicyKit
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r--src/core/cgroup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 799296ad28..932160d276 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -36,8 +36,7 @@
#define CGROUP_CPU_QUOTA_PERIOD_USEC ((usec_t) 100 * USEC_PER_MSEC)
-static void cgroup_compat_warn(void)
-{
+static void cgroup_compat_warn(void) {
static bool cgroup_compat_warned = false;
if (cgroup_compat_warned)
@@ -50,7 +49,7 @@ static void cgroup_compat_warn(void)
#define log_cgroup_compat(unit, fmt, ...) do { \
cgroup_compat_warn(); \
log_unit_debug(unit, "cgroup-compat: " fmt, ##__VA_ARGS__); \
- } while (0)
+ } while (false)
void cgroup_context_init(CGroupContext *c) {
assert(c);