summaryrefslogtreecommitdiffstats
path: root/src/expression.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-02-12 13:21:10 +0100
committerFlorian Westphal <fw@strlen.de>2019-02-12 13:23:41 +0100
commit0528100bf2d7f2492ce78b234c00eb5a3a416be4 (patch)
tree8cc51543144868427c7bc9ff95894b1dc17e2cd9 /src/expression.c
parente3f195777ee54c7a57aab932b64c6ecbd782f68f (diff)
src: expr: fix build failure with json support
Fixes: e3f195777ee54 ("src: expr: remove expr_ops from struct expr") Reported-by: Mikhail Morfikov <mmorfikov@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/expression.c')
-rw-r--r--src/expression.c4
1 files changed, 1 insertions, 3 deletions
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: