From: Tom Hromatka Date: Sun, 5 Jan 2020 22:46:02 +0000 (-0700) Subject: cgrulesengd: Fix improper indentation warning X-Git-Tag: v0.42~3^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c60d7117229ca38b29fe7f1929d013cea93e1296;p=thirdparty%2Flibcgroup.git 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 --- diff --git a/src/daemon/cgrulesengd.c b/src/daemon/cgrulesengd.c index 0d90b8b1..5efc00eb 100644 --- a/src/daemon/cgrulesengd.c +++ b/src/daemon/cgrulesengd.c @@ -1009,11 +1009,11 @@ void cgre_catch_term(int signum) */ static int cgre_parse_syslog_facility(const char *arg) { - if (arg == NULL) - return 0; + if (arg == NULL) + return 0; - if (strlen(arg) > 1) - return 0; + if (strlen(arg) > 1) + return 0; switch (arg[0]) { case '0':