From 0e7b6c4983af4ddd3a50c3ce756638af157c7130 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 7 Sep 2015 18:02:50 +0200 Subject: src: get rid of _ATTR_ infix in new nfntl_ definitions The constant names are already large, trim off the _ATTR_ infix in the attribute definitions. Signed-off-by: Pablo Neira Ayuso --- examples/nft-chain-add.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/nft-chain-add.c') diff --git a/examples/nft-chain-add.c b/examples/nft-chain-add.c index c50369e..173af18 100644 --- a/examples/nft-chain-add.c +++ b/examples/nft-chain-add.c @@ -48,11 +48,11 @@ static struct nftnl_chain *chain_add_parse(int argc, char *argv[]) perror("OOM"); return NULL; } - nftnl_chain_attr_set(t, NFTNL_CHAIN_ATTR_TABLE, argv[2]); - nftnl_chain_attr_set(t, NFTNL_CHAIN_ATTR_NAME, argv[3]); + nftnl_chain_attr_set(t, NFTNL_CHAIN_TABLE, argv[2]); + nftnl_chain_attr_set(t, NFTNL_CHAIN_NAME, argv[3]); if (argc == 6) { - nftnl_chain_attr_set_u32(t, NFTNL_CHAIN_ATTR_HOOKNUM, hooknum); - nftnl_chain_attr_set_u32(t, NFTNL_CHAIN_ATTR_PRIO, atoi(argv[5])); + nftnl_chain_attr_set_u32(t, NFTNL_CHAIN_HOOKNUM, hooknum); + nftnl_chain_attr_set_u32(t, NFTNL_CHAIN_PRIO, atoi(argv[5])); } return t; -- cgit v1.2.3