summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-03-31 15:51:33 +0200
committerFlorian Westphal <fw@strlen.de>2018-04-01 00:05:53 +0200
commit7ba74b597300ffbb06df1bf3e6fcfe92add65bb4 (patch)
tree544e57ee17f20a2627c4d40637af0affa564f8f9
parentff8105752ae9d29c50d18e35bc766935642b7476 (diff)
statement: print space before "{" in set add
old: add @set5{ ip6 saddr . ip6 daddr} new: add @set5 { ip6 saddr . ip6 daddr} Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--src/statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statement.c b/src/statement.c
index b8e0b036..f81e0123 100644
--- a/src/statement.c
+++ b/src/statement.c
@@ -571,7 +571,7 @@ static void set_stmt_print(const struct stmt *stmt, struct output_ctx *octx)
{
nft_print(octx, "%s ", set_stmt_op_names[stmt->set.op]);
expr_print(stmt->set.set, octx);
- nft_print(octx, "{ ");
+ nft_print(octx, " { ");
expr_print(stmt->set.key, octx);
nft_print(octx, " } ");
}