From 70cbfd7ed479f36ec72ea88b45e14a94325cc465 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 24 Aug 2013 18:08:17 +0200 Subject: src: json: s/nft_jansson_value_parse_val/nft_jansson_parse_val/g This patch is a cleanup to save LOC. I have also changed it to use < 0 to check for error conditions. Signed-off-by: Pablo Neira Ayuso --- src/expr/ct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/expr/ct.c') diff --git a/src/expr/ct.c b/src/expr/ct.c index 79c4f05..78575f2 100644 --- a/src/expr/ct.c +++ b/src/expr/ct.c @@ -205,8 +205,7 @@ static int nft_rule_expr_ct_json_parse(struct nft_rule_expr *e, json_t *root) } if (nft_jansson_node_exist(root, "dir")) { - if (nft_jansson_value_parse_val(root, "dir", NFT_TYPE_U8, - &dir) != 0) + if (nft_jansson_parse_val(root, "dir", NFT_TYPE_U8, &dir) < 0) return -1; if (dir != IP_CT_DIR_ORIGINAL && dir != IP_CT_DIR_REPLY) -- cgit v1.2.3