path: root/src/expression.c
diff options
authorPablo Neira Ayuso <>2017-05-26 11:49:21 +0100
committerPablo Neira Ayuso <>2017-05-29 13:00:38 +0200
commit73ee6f7f4d76c442fb7a3ba3087061b4eef604e3 (patch)
tree75bdc2db79046d68fd101b0ce48f96899f3bbd15 /src/expression.c
parent9330ccf64c4cc17673549bfb6a88acdbd73a8dd5 (diff)
expression: don't trim off unary expression on delinearization
This transformation introduces an unnecessary asymmetry between the linearization and delinearization steps that prevent rule deletion by name to work fine. Moreover, do not print htonl and ntonl from unary expression, this syntax is not allowed by the parser. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src/expression.c')
1 files changed, 0 insertions, 3 deletions
diff --git a/src/expression.c b/src/expression.c
index 5defa63f..55dd3911 100644
--- a/src/expression.c
+++ b/src/expression.c
@@ -460,10 +460,7 @@ const char *expr_op_symbols[] = {
static void unary_expr_print(const struct expr *expr)
- if (expr_op_symbols[expr->op] != NULL)
- printf("%s(", expr_op_symbols[expr->op]);
- printf(")");
static void unary_expr_clone(struct expr *new, const struct expr *expr)