summaryrefslogtreecommitdiffstats
path: root/examples/nft-rule-del.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-rule-del.c')
-rw-r--r--examples/nft-rule-del.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nft-rule-del.c b/examples/nft-rule-del.c
index bfd37ab..fee3011 100644
--- a/examples/nft-rule-del.c
+++ b/examples/nft-rule-del.c
@@ -58,8 +58,8 @@ int main(int argc, char *argv[])
}
seq = time(NULL);
- nftnl_rule_set(r, NFTNL_RULE_TABLE, argv[2]);
- nftnl_rule_set(r, NFTNL_RULE_CHAIN, argv[3]);
+ nftnl_rule_set_str(r, NFTNL_RULE_TABLE, argv[2]);
+ nftnl_rule_set_str(r, NFTNL_RULE_CHAIN, argv[3]);
/* If no handle is specified, delete all rules in the chain */
if (argc == 5)