summaryrefslogtreecommitdiffstats
path: root/src/table.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/table.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/table.c')
-rw-r--r--src/table.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/table.c b/src/table.c
index b51a383..a096da7 100644
--- a/src/table.c
+++ b/src/table.c
@@ -218,7 +218,7 @@ int nft_table_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_table *t)
}
EXPORT_SYMBOL(nft_table_nlmsg_parse);
-static int nft_table_xml_parse(struct nft_table *t, char *xml)
+static int nft_table_xml_parse(struct nft_table *t, const char *xml)
{
#ifdef XML_PARSING
mxml_node_t *tree;
@@ -266,7 +266,7 @@ err:
#endif
}
-static int nft_table_json_parse(struct nft_table *t, char *json)
+static int nft_table_json_parse(struct nft_table *t, const char *json)
{
#ifdef JSON_PARSING
json_t *root, *node;
@@ -312,7 +312,7 @@ err:
}
int nft_table_parse(struct nft_table *t, enum nft_table_parse_type type,
- char *data)
+ const char *data)
{
int ret;