path: root/examples/nft-table-get.c
diff options
authorPhil Sutter <>2019-12-04 15:45:43 +0100
committerPhil Sutter <>2019-12-04 23:33:23 +0100
commitdfe3828f77b52a2d46b5f40e2c125b60e99cbaec (patch)
tree095ee74272f2132211f921ee0f40831a9444c879 /examples/nft-table-get.c
parentd95a703746d5394d56a9f464e343594e4882da0d (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 <> Acked-by: Pablo Neira Ayuso <> Acked-by: Arturo Borrero Gonzalez <>
Diffstat (limited to 'examples/nft-table-get.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nft-table-get.c b/examples/nft-table-get.c
index eac2f2f..c0c8454 100644
--- a/examples/nft-table-get.c
+++ b/examples/nft-table-get.c
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
} else {
nlh = nftnl_table_nlmsg_build_hdr(buf, NFT_MSG_GETTABLE, family,
NLM_F_ACK, seq);
- nftnl_table_set(t, NFTNL_TABLE_NAME, argv[2]);
+ nftnl_table_set_str(t, NFTNL_TABLE_NAME, argv[2]);
nftnl_table_nlmsg_build_payload(nlh, t);