From 44d11498479a08f46a64431d60ed19d4aba94dad Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 7 Sep 2015 18:57:50 +0200 Subject: src: get rid of _attr_ infix in new nftnl_ definitions The function names are already large, trim off the _ATTR_ infix in the attribute definitions. Signed-off-by: Pablo Neira Ayuso --- examples/nft-set-add.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/nft-set-add.c') diff --git a/examples/nft-set-add.c b/examples/nft-set-add.c index a29115c..e040aca 100644 --- a/examples/nft-set-add.c +++ b/examples/nft-set-add.c @@ -39,12 +39,12 @@ static struct nftnl_set *setup_set(uint8_t family, const char *table, exit(EXIT_FAILURE); } - nftnl_set_attr_set_str(s, NFTNL_SET_TABLE, table); - nftnl_set_attr_set_str(s, NFTNL_SET_NAME, name); - nftnl_set_attr_set_u32(s, NFTNL_SET_FAMILY, family); - nftnl_set_attr_set_u32(s, NFTNL_SET_KEY_LEN, 2); - nftnl_set_attr_set_u32(s, NFTNL_SET_ID, 1); - nftnl_set_attr_set_u32(s, NFTNL_SET_FLAGS, NFT_SET_CONSTANT); + nftnl_set_set_str(s, NFTNL_SET_TABLE, table); + nftnl_set_set_str(s, NFTNL_SET_NAME, name); + nftnl_set_set_u32(s, NFTNL_SET_FAMILY, family); + nftnl_set_set_u32(s, NFTNL_SET_KEY_LEN, 2); + nftnl_set_set_u32(s, NFTNL_SET_ID, 1); + nftnl_set_set_u32(s, NFTNL_SET_FLAGS, NFT_SET_CONSTANT); return s; } -- cgit v1.2.3