diff options
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |