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.hroma...@oracle.com>
---
 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 0d90b8b114b8..5efc00eb9aed 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':
-- 
1.8.3.1



_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to