summaryrefslogtreecommitdiffstats
path: root/src/xfrm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfrm.c')
-rw-r--r--src/xfrm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfrm.c b/src/xfrm.c
index 0f5818c5..4dd53c32 100644
--- a/src/xfrm.c
+++ b/src/xfrm.c
@@ -91,7 +91,7 @@ static void xfrm_expr_clone(struct expr *new, const struct expr *expr)
memcpy(&new->xfrm, &expr->xfrm, sizeof(new->xfrm));
}
-static const struct expr_ops xfrm_expr_ops = {
+const struct expr_ops xfrm_expr_ops = {
.type = EXPR_XFRM,
.name = "xfrm",
.print = xfrm_expr_print,
@@ -107,7 +107,7 @@ struct expr *xfrm_expr_alloc(const struct location *loc,
{
struct expr *expr;
- expr = expr_alloc(loc, &xfrm_expr_ops,
+ expr = expr_alloc(loc, EXPR_XFRM,
xfrm_templates[key].dtype,
xfrm_templates[key].byteorder,
xfrm_templates[key].len);