From dfe3828f77b52a2d46b5f40e2c125b60e99cbaec Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 4 Dec 2019 15:45:43 +0100 Subject: examples: Replace use of deprecated symbols Do not use unqualified setters to avoid the warnings. Pass a (false) zero length value to nftnl_flowtable_set_data() when assigning to NFTNL_FLOWTABLE_DEVICES as the length value is unused and not even usable. Maybe one should introduce a dedicated nftnl_flowtable_set_devices() at a later point. Fixes: 7349a70634fa0 ("Deprecate untyped data setters") Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso Acked-by: Arturo Borrero Gonzalez --- examples/nft-rule-del.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/nft-rule-del.c') 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) -- cgit v1.2.3