From e09675c53f54dfb19b60a4f075bca0250b212487 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 3 Aug 2018 12:19:25 +0200 Subject: expr: osf: remove json code This code, which is enabled via --with-json-parsing, doesn't compile. Signed-off-by: Pablo Neira Ayuso --- src/expr/osf.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src') diff --git a/src/expr/osf.c b/src/expr/osf.c index a005af8..1541390 100644 --- a/src/expr/osf.c +++ b/src/expr/osf.c @@ -88,23 +88,6 @@ nftnl_expr_osf_parse(struct nftnl_expr *e, struct nlattr *attr) return 0; } -static int nftnl_expr_osf_json_parse(struct nftnl_expr *e, json_t *root, - struct nftnl_parse_err *err) -{ -#ifdef JSON_PARSING - __u32 dreg; - - genre = nftnl_jansson_parse_u32(root, "dreg", err); - if (genre != NULL) - nftnl_expr_set_u32(e, NFTNL_EXPR_OSF_DREG, ); - - return 0; -#else - errno = EOPNOTSUPP; - return -1; -#endif -} - static int nftnl_expr_osf_snprintf_default(char *buf, size_t size, const struct nftnl_expr *e) { @@ -170,5 +153,4 @@ struct expr_ops expr_ops_osf = { .parse = nftnl_expr_osf_parse, .build = nftnl_expr_osf_build, .snprintf = nftnl_expr_osf_snprintf, - .json_parse = nftnl_expr_osf_json_parse, }; -- cgit v1.2.3