mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 19:10:42 +01:00
cosmetic: fix code style, most importantly indention
This commit is contained in:
parent
9dab121f7b
commit
adec568655
@ -3134,8 +3134,7 @@ cnfstmtPrintOnly(struct cnfstmt *stmt, int indent, sbool subtree)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case S_FOREACH:
|
case S_FOREACH:
|
||||||
doIndent(indent); dbgprintf("FOREACH %s IN\n",
|
doIndent(indent); dbgprintf("FOREACH %s IN\n", stmt->d.s_foreach.iter->var);
|
||||||
stmt->d.s_foreach.iter->var);
|
|
||||||
cnfexprPrint(stmt->d.s_foreach.iter->collection, indent+1);
|
cnfexprPrint(stmt->d.s_foreach.iter->collection, indent+1);
|
||||||
if(subtree) {
|
if(subtree) {
|
||||||
doIndent(indent); dbgprintf("DO\n");
|
doIndent(indent); dbgprintf("DO\n");
|
||||||
@ -3154,9 +3153,10 @@ cnfstmtPrintOnly(struct cnfstmt *stmt, int indent, sbool subtree)
|
|||||||
stmt->d.s_unset.varname);
|
stmt->d.s_unset.varname);
|
||||||
break;
|
break;
|
||||||
case S_RELOAD_LOOKUP_TABLE:
|
case S_RELOAD_LOOKUP_TABLE:
|
||||||
doIndent(indent); dbgprintf("RELOAD_LOOKUP_TABLE table(%s) (stub with '%s' on error)",
|
doIndent(indent);
|
||||||
stmt->d.s_reload_lookup_table.table_name,
|
dbgprintf("RELOAD_LOOKUP_TABLE table(%s) (stub with '%s' on error)",
|
||||||
stmt->d.s_reload_lookup_table.stub_value);
|
stmt->d.s_reload_lookup_table.table_name,
|
||||||
|
stmt->d.s_reload_lookup_table.stub_value);
|
||||||
break;
|
break;
|
||||||
case S_PRIFILT:
|
case S_PRIFILT:
|
||||||
doIndent(indent); dbgprintf("PRIFILT '%s'\n", stmt->printable);
|
doIndent(indent); dbgprintf("PRIFILT '%s'\n", stmt->printable);
|
||||||
@ -3368,13 +3368,13 @@ cnfstmtDestruct(struct cnfstmt *stmt)
|
|||||||
cstrDestruct(&stmt->d.s_propfilt.pCSCompValue);
|
cstrDestruct(&stmt->d.s_propfilt.pCSCompValue);
|
||||||
cnfstmtDestructLst(stmt->d.s_propfilt.t_then);
|
cnfstmtDestructLst(stmt->d.s_propfilt.t_then);
|
||||||
break;
|
break;
|
||||||
case S_RELOAD_LOOKUP_TABLE:
|
case S_RELOAD_LOOKUP_TABLE:
|
||||||
if (stmt->d.s_reload_lookup_table.table_name != NULL) {
|
if (stmt->d.s_reload_lookup_table.table_name != NULL) {
|
||||||
free(stmt->d.s_reload_lookup_table.table_name);
|
free(stmt->d.s_reload_lookup_table.table_name);
|
||||||
}
|
}
|
||||||
if (stmt->d.s_reload_lookup_table.stub_value != NULL) {
|
if (stmt->d.s_reload_lookup_table.stub_value != NULL) {
|
||||||
free(stmt->d.s_reload_lookup_table.stub_value);
|
free(stmt->d.s_reload_lookup_table.stub_value);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DBGPRINTF("error: unknown stmt type during destruct %u\n",
|
DBGPRINTF("error: unknown stmt type during destruct %u\n",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user