diff options
Diffstat (limited to 'examples/nft-rule-add.c')
-rw-r--r-- | examples/nft-rule-add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nft-rule-add.c b/examples/nft-rule-add.c index 6aaf5a0..9780515 100644 --- a/examples/nft-rule-add.c +++ b/examples/nft-rule-add.c @@ -93,8 +93,8 @@ static struct nftnl_rule *setup_rule(uint8_t family, const char *table, exit(EXIT_FAILURE); } - nftnl_rule_set(r, NFTNL_RULE_TABLE, table); - nftnl_rule_set(r, NFTNL_RULE_CHAIN, chain); + nftnl_rule_set_str(r, NFTNL_RULE_TABLE, table); + nftnl_rule_set_str(r, NFTNL_RULE_CHAIN, chain); nftnl_rule_set_u32(r, NFTNL_RULE_FAMILY, family); if (handle != NULL) { |