]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgrulesengd: Fix improper indentation warning
authorTom Hromatka <tom.hromatka@oracle.com>
Sun, 5 Jan 2020 22:46:02 +0000 (15:46 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 8 Jan 2020 15:01:39 +0000 (08:01 -0700)
commitc60d7117229ca38b29fe7f1929d013cea93e1296
treeb1aa1f0bb174ecd3d6d831b3fa314cfa58a42c69
parent716a104cf5788ee521ac83f41b286492a0cb802f
cgrulesengd: Fix improper indentation warning

This commit fixes the following warning:

cgrulesengd.c: In function ‘cgre_parse_syslog_facility’:
cgrulesengd.c:1015:5: warning: this ‘if’ clause does not guard...
    [-Wmisleading-indentation]
    1015 |     if (strlen(arg) > 1)
         |     ^~
cgrulesengd.c:1018:2: note: ...this statement, but the latter is
    misleadingly indented as if it were guarded by the ‘if’
    1018 |  switch (arg[0]) {
         |  ^~~~~~

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/daemon/cgrulesengd.c