[PATCH nftables,v2 3/7] src: remove '$' in symbol_expr_print

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is used in --debug=eval mode to annotate symbols that have not yet
been evaluated, remove it.

Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 src/expression.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/expression.c b/src/expression.c
index f1cca8845376..34e0880be470 100644
--- a/src/expression.c
+++ b/src/expression.c
@@ -300,8 +300,7 @@ struct expr *verdict_expr_alloc(const struct location *loc,
 
 static void symbol_expr_print(const struct expr *expr, struct output_ctx *octx)
 {
-	nft_print(octx, "%s%s", expr->scope != NULL ? "$" : "",
-		  expr->identifier);
+	nft_print(octx, "%s", expr->identifier);
 }
 
 static void symbol_expr_clone(struct expr *new, const struct expr *expr)
-- 
2.30.2




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux