diff options
author | Florian Westphal <fw@strlen.de> | 2019-02-08 17:02:22 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-02-08 21:22:51 +0100 |
commit | 72931553828af0ce85f0562b9ff8ec7f4d28e050 (patch) | |
tree | 6fe42e2a99febc3ff783f63b8219de81215cf0d3 /src/monitor.c | |
parent | 2cc91e6198e7ee8b9d0f8727c67a849fec393cd0 (diff) |
src: expr: add expression etype
Temporary kludge to remove all the expr->ops->type == ... patterns.
Followup patch will remove expr->ops, and make expr_ops() lookup
the correct expr_ops struct instead to reduce struct expr size.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/monitor.c')
-rw-r--r-- | src/monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.c b/src/monitor.c index 0e735ed5..35dc4501 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -330,7 +330,7 @@ static bool netlink_event_ignore_range_event(struct nftnl_set_elem *nlse) static bool set_elem_is_open_interval(struct expr *elem) { - switch (elem->ops->type) { + switch (elem->etype) { case EXPR_SET_ELEM: return elem->elem_flags & SET_ELEM_F_INTERVAL_OPEN; case EXPR_MAPPING: |