path: root/src
diff options
authorPhil Sutter <>2017-03-22 01:26:36 +0100
committerPablo Neira Ayuso <>2017-03-22 12:50:35 +0100
commit535a7324626f45bded749dcee7e225f9e0fa28d0 (patch)
tree70d924712d12190cc7617974f993dfd36b98ecf4 /src
parent3b4851bfcf2b2d160b759b191232125cb4a4b3ff (diff)
sets: Fix for missing space after last element
Not having a space between the last element in a set and the closing curly brace looks ugly, so add it here. This also adjusts all shell testcases as they match whitespace in nft output and therefore fail otherwise. Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expression.c b/src/expression.c
index a6065524..45f3ed8d 100644
--- a/src/expression.c
+++ b/src/expression.c
@@ -746,7 +746,7 @@ static void set_expr_print(const struct expr *expr)
printf("{ ");
compound_expr_print(expr, ", ");
- printf("}");
+ printf(" }");
static void set_expr_set_type(const struct expr *expr,