diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-08-13 15:15:08 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-08-27 23:52:08 +0200 |
| commit | e8c7a780d2755f5cccd7369f32f771bab2fcaf63 (patch) | |
| tree | d5a6734b4b196c667eaa5dcdd7713aaa2b0af5cc /include/expression.h | |
| parent | 15479e66d20dda2ddd670159c5ef005320f2398c (diff) | |
src: replace compound_expr_add() by type safe list_expr_add()
Replace compound_expr_add() by list_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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h index 0d9e10d7..ad469db2 100644 --- a/include/expression.h +++ b/include/expression.h @@ -534,6 +534,7 @@ 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); +void list_expr_add(struct expr *expr, struct expr *item); struct expr *list_expr_to_binop(struct expr *expr); extern struct expr *set_expr_alloc(const struct location *loc, |
