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 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);
nftnl_table_free(t);
}