From 46439a3e8d6635a1461ff4c43665fb1425cadd1d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 13 Jul 2013 21:56:06 +0200 Subject: expr: add nft_expr_data to replace explicit casting to obtain expression data Signed-off-by: Pablo Neira Ayuso --- src/expr_ops.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/expr_ops.h') diff --git a/src/expr_ops.h b/src/expr_ops.h index d8a0b36..78413fc 100644 --- a/src/expr_ops.h +++ b/src/expr_ops.h @@ -30,4 +30,6 @@ struct expr_ops { void nft_expr_ops_register(struct expr_ops *ops); struct expr_ops *nft_expr_ops_lookup(const char *name); +#define nft_expr_data(ops) (void *)ops->data + #endif -- cgit v1.2.3