path: root/src/batch.c
diff options
authorPhil Sutter <>2021-03-09 13:41:44 +0100
committerPhil Sutter <>2021-03-15 12:23:23 +0100
commita00d9d06b5021c27333e52e88b99493fa56d15a1 (patch)
treea6fb17354e6669cdaefd12fa78d4c3592f944b63 /src/batch.c
parent960c8e6174374ee113b290c304365bf02ed346d6 (diff)
Get rid of single option switch statements
Replace each by a conditional testing the only valid case. There is one odd example, namely src/set.c: When printing a set with type NFTNL_OUTPUT_XML, the relevant function would return 0 instead of -1 like all others. Just drop it assuming nothing depends on that (faulty) behaviour. Cc: Arturo Borrero <> Signed-off-by: Phil Sutter <>
Diffstat (limited to 'src/batch.c')
0 files changed, 0 insertions, 0 deletions