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>
*/
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':