diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-24 17:57:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-24 17:57:16 +0200 |
commit | 3b5f75162f2307c30443f6175d37080c7f0d7e66 (patch) | |
tree | 28e46f9f7ae2ea996128c6a54381147ad3c69eac /src/jansson.c | |
parent | 7e3c0b62f9fc3dab35b13b021618a0fcf2f25ca4 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'src/jansson.c')
-rw-r--r-- | src/jansson.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jansson.c b/src/jansson.c index f2b2f00..e9a1315 100644 --- a/src/jansson.c +++ b/src/jansson.c @@ -42,7 +42,7 @@ static int nft_jansson_load_int_node(json_t *root, const char *tag, return 0; } -const char *nft_jansson_value_parse_str(json_t *root, const char *tag) +const char *nft_jansson_parse_str(json_t *root, const char *tag) { json_t *node; const char *val; @@ -112,7 +112,7 @@ int nft_jansson_parse_family(json_t *root, void *out) const char *str; int family; - str = nft_jansson_value_parse_str(root, "family"); + str = nft_jansson_parse_str(root, "family"); if (str == NULL) return -1; @@ -145,7 +145,7 @@ int nft_jansson_str2num(json_t *root, const char *tag, int base, { const char *str; - str = nft_jansson_value_parse_str(root, tag); + str = nft_jansson_parse_str(root, tag); if (str == NULL) return -1; @@ -158,7 +158,7 @@ struct nft_rule_expr *nft_jansson_expr_parse(json_t *root) const char *type; int ret; - type = nft_jansson_value_parse_str(root, "type"); + type = nft_jansson_parse_str(root, "type"); if (type == NULL) return NULL; @@ -197,7 +197,7 @@ int nft_jansson_data_reg_parse(json_t *root, const char *tag, return -1; } - type = nft_jansson_value_parse_str(data, "type"); + type = nft_jansson_parse_str(data, "type"); if (type == NULL) return -1; |