From c60d7117229ca38b29fe7f1929d013cea93e1296 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Sun, 5 Jan 2020 15:46:02 -0700 Subject: [PATCH] cgrulesengd: Fix improper indentation warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/daemon/cgrulesengd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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': -- 2.47.2