summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.c')
-rw-r--r--src/rule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rule.c b/src/rule.c
index aba1e6b..68fb6d9 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -69,7 +69,7 @@ void nft_rule_free(struct nft_rule *r)
}
EXPORT_SYMBOL(nft_rule_free);
-void nft_rule_attr_set(struct nft_rule *r, uint16_t attr, void *data)
+void nft_rule_attr_set(struct nft_rule *r, uint16_t attr, const void *data)
{
switch(attr) {
case NFT_RULE_ATTR_TABLE:
@@ -118,7 +118,7 @@ void nft_rule_attr_set_u64(struct nft_rule *r, uint16_t attr, uint64_t val)
}
EXPORT_SYMBOL(nft_rule_attr_set_u64);
-void nft_rule_attr_set_str(struct nft_rule *r, uint16_t attr, char *str)
+void nft_rule_attr_set_str(struct nft_rule *r, uint16_t attr, const char *str)
{
nft_rule_attr_set(r, attr, str);
}