summaryrefslogtreecommitdiffstats
path: root/include/expression.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2025-08-13 15:14:48 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2025-08-27 23:52:08 +0200
commit15479e66d20dda2ddd670159c5ef005320f2398c (patch)
tree4a49dcf5c30cb8969f1efb2d7a8c401f6353fb3c /include/expression.h
parentd6bfd4f903f65b9cc72778f343cde4aab0148be6 (diff)
src: replace compound_expr_add() by type safe concat_expr_add()
Replace compound_expr_add by concat_expr_add() to validate type. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/expression.h')
-rw-r--r--include/expression.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h
index 4dc6c192..0d9e10d7 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -531,6 +531,7 @@ extern void list_expr_sort(struct list_head *head);
extern void list_splice_sorted(struct list_head *list, struct list_head *head);
extern struct expr *concat_expr_alloc(const struct location *loc);
+void concat_expr_add(struct expr *concat, struct expr *item);
extern struct expr *list_expr_alloc(const struct location *loc);
struct expr *list_expr_to_binop(struct expr *expr);