summaryrefslogtreecommitdiffstats
path: root/examples/nft-chain-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-chain-add.c')
-rw-r--r--examples/nft-chain-add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nft-chain-add.c b/examples/nft-chain-add.c
index 5796d10..cde4c97 100644
--- a/examples/nft-chain-add.c
+++ b/examples/nft-chain-add.c
@@ -48,8 +48,8 @@ static struct nftnl_chain *chain_add_parse(int argc, char *argv[])
perror("OOM");
return NULL;
}
- nftnl_chain_set(t, NFTNL_CHAIN_TABLE, argv[2]);
- nftnl_chain_set(t, NFTNL_CHAIN_NAME, argv[3]);
+ nftnl_chain_set_str(t, NFTNL_CHAIN_TABLE, argv[2]);
+ nftnl_chain_set_str(t, NFTNL_CHAIN_NAME, argv[3]);
if (argc == 6) {
nftnl_chain_set_u32(t, NFTNL_CHAIN_HOOKNUM, hooknum);
nftnl_chain_set_u32(t, NFTNL_CHAIN_PRIO, atoi(argv[5]));