From 0528100bf2d7f2492ce78b234c00eb5a3a416be4 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 12 Feb 2019 13:21:10 +0100 Subject: src: expr: fix build failure with json support Fixes: e3f195777ee54 ("src: expr: remove expr_ops from struct expr") Reported-by: Mikhail Morfikov Signed-off-by: Florian Westphal --- src/expression.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/expression.c') diff --git a/src/expression.c b/src/expression.c index fdbafd19..0edc1d22 100644 --- a/src/expression.c +++ b/src/expression.c @@ -36,8 +36,6 @@ extern const struct expr_ops rt_expr_ops; extern const struct expr_ops socket_expr_ops; extern const struct expr_ops xfrm_expr_ops; -static const struct expr_ops *expr_ops(const struct expr *e); - struct expr *expr_alloc(const struct location *loc, enum expr_types etype, const struct datatype *dtype, enum byteorder byteorder, unsigned int len) @@ -1171,7 +1169,7 @@ void range_expr_value_high(mpz_t rop, const struct expr *expr) } } -static const struct expr_ops *expr_ops(const struct expr *e) +const struct expr_ops *expr_ops(const struct expr *e) { switch (e->etype) { case EXPR_INVALID: -- cgit v1.2.3