summaryrefslogtreecommitdiffstats
path: root/examples/nft-table-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-table-get.c')
-rw-r--r--examples/nft-table-get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nft-table-get.c b/examples/nft-table-get.c
index 84524b0..d648a11 100644
--- a/examples/nft-table-get.c
+++ b/examples/nft-table-get.c
@@ -104,7 +104,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_attr_set(t, NFTNL_TABLE_NAME, argv[2]);
+ nftnl_table_set(t, NFTNL_TABLE_NAME, argv[2]);
nftnl_table_nlmsg_build_payload(nlh, t);
nftnl_table_free(t);
}