diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-24 15:59:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-06-24 15:59:24 +0200 |
commit | 2b40998d3c02ff4097373150cb47776ced0be315 (patch) | |
tree | e94edbbbee65ff495341ac0a17a1f575310e4a76 /src/core | |
parent | 3efb871a3ca0786acdd8b5c040d83cac2a64d875 (diff) |
cgroup: minor coding style fix
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/cgroup.c | 5 |
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); |