summaryrefslogtreecommitdiffstats
path: root/examples/nft-rule-ct-expectation-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-rule-ct-expectation-add.c')
-rw-r--r--examples/nft-rule-ct-expectation-add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nft-rule-ct-expectation-add.c b/examples/nft-rule-ct-expectation-add.c
index 238e224..2012b3c 100644
--- a/examples/nft-rule-ct-expectation-add.c
+++ b/examples/nft-rule-ct-expectation-add.c
@@ -69,8 +69,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) {