diff options
author | Phil Sutter <phil@nwl.cc> | 2019-12-04 15:45:43 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-12-04 23:33:23 +0100 |
commit | dfe3828f77b52a2d46b5f40e2c125b60e99cbaec (patch) | |
tree | 095ee74272f2132211f921ee0f40831a9444c879 /examples/nft-rule-ct-timeout-add.c | |
parent | d95a703746d5394d56a9f464e343594e4882da0d (diff) |
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 <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Diffstat (limited to 'examples/nft-rule-ct-timeout-add.c')
-rw-r--r-- | examples/nft-rule-ct-timeout-add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nft-rule-ct-timeout-add.c b/examples/nft-rule-ct-timeout-add.c index d779d9a..d3f843e 100644 --- a/examples/nft-rule-ct-timeout-add.c +++ b/examples/nft-rule-ct-timeout-add.c @@ -56,8 +56,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) { |