summaryrefslogtreecommitdiffstats
path: root/src/chain.c
diff options
context:
space:
mode:
authorArturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>2013-08-21 21:21:29 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-08-22 02:18:37 +0200
commitc15e8e5d2a1bbcb56d571b5f97ef30d1b8839d70 (patch)
tree20c5b3de8b65050cb7788a8b7d0b74413982ac79 /src/chain.c
parent404940fb8ce9de396a988aae8d07f8014ce11fee (diff)
src: constify nft_*_parse input data
Since the input string is not changing, let's make it constant. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/chain.c')
-rw-r--r--src/chain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chain.c b/src/chain.c
index ac6e7ad..93896c9 100644
--- a/src/chain.c
+++ b/src/chain.c
@@ -479,7 +479,7 @@ static inline int nft_str2hooknum(const char *hook)
return -1;
}
-static int nft_chain_json_parse(struct nft_chain *c, char *json)
+static int nft_chain_json_parse(struct nft_chain *c, const char *json)
{
#ifdef JSON_PARSING
json_t *root, *node;
@@ -580,7 +580,7 @@ err:
#endif
}
-static int nft_chain_xml_parse(struct nft_chain *c, char *xml)
+static int nft_chain_xml_parse(struct nft_chain *c, const char *xml)
{
#ifdef XML_PARSING
mxml_node_t *tree;
@@ -686,7 +686,7 @@ err:
}
int nft_chain_parse(struct nft_chain *c, enum nft_chain_parse_type type,
- char *data)
+ const char *data)
{
int ret;