From 3b5f75162f2307c30443f6175d37080c7f0d7e66 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 24 Aug 2013 17:57:16 +0200 Subject: src: json: s/nft_jansson_value_parse_str/nft_jansson_parse_str/g Remove _value_ infix to make the function name smaller. Signed-off-by: Pablo Neira Ayuso --- src/expr/nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/expr/nat.c') diff --git a/src/expr/nat.c b/src/expr/nat.c index 312594f..6cde333 100644 --- a/src/expr/nat.c +++ b/src/expr/nat.c @@ -203,7 +203,7 @@ static int nft_rule_expr_nat_json_parse(struct nft_rule_expr *e, json_t *root) uint32_t reg; int val32; - nat_type = nft_jansson_value_parse_str(root, "nat_type"); + nat_type = nft_jansson_parse_str(root, "nat_type"); if (nat_type == NULL) return -1; @@ -213,7 +213,7 @@ static int nft_rule_expr_nat_json_parse(struct nft_rule_expr *e, json_t *root) nft_rule_expr_set_u32(e, NFT_EXPR_NAT_TYPE, val32); - family_str = nft_jansson_value_parse_str(root, "family"); + family_str = nft_jansson_parse_str(root, "family"); if (family_str == NULL) return -1; -- cgit v1.2.3