diff options
author | Florian Westphal <fw@strlen.de> | 2019-02-08 17:02:19 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-02-08 21:22:21 +0100 |
commit | 68e76238749fb238bf92e7dc8903fed15a86aa1b (patch) | |
tree | 9d968dd70b1c214ac28cd48b794699291a81ffc9 /src/mergesort.c | |
parent | a80997fa9a290462c5d001c5d448ddb2fbd7da5c (diff) |
src: expr: add and use expr_name helper
Currently callers use expr->ops->name, but follouwp patch will remove the
ops pointer from struct expr. So add this helper and use it everywhere.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/mergesort.c')
-rw-r--r-- | src/mergesort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mergesort.c b/src/mergesort.c index a8353203..f2e38bc2 100644 --- a/src/mergesort.c +++ b/src/mergesort.c @@ -44,7 +44,7 @@ static int expr_msort_cmp(const struct expr *e1, const struct expr *e2) case EXPR_MAPPING: return expr_msort_cmp(e1->left, e2->left); default: - BUG("Unknown expression %s\n", e1->ops->name); + BUG("Unknown expression %s\n", expr_name(e1)); } } |