summaryrefslogtreecommitdiffstats
path: root/src/set.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/set.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/set.c')
-rw-r--r--src/set.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/set.c b/src/set.c
index ff34bf5..3617265 100644
--- a/src/set.c
+++ b/src/set.c
@@ -303,7 +303,7 @@ int nft_set_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_set *s)
}
EXPORT_SYMBOL(nft_set_nlmsg_parse);
-static int nft_set_xml_parse(struct nft_set *s, char *xml)
+static int nft_set_xml_parse(struct nft_set *s, const char *xml)
{
#ifdef XML_PARSING
mxml_node_t *tree;
@@ -406,7 +406,8 @@ err:
#endif
}
-int nft_set_parse(struct nft_set *s, enum nft_set_parse_type type, char *data)
+int nft_set_parse(struct nft_set *s, enum nft_set_parse_type type,
+ const char *data)
{
int ret;