summaryrefslogtreecommitdiffstats
path: root/iptables/nft-cache.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-03-13 13:00:56 +0100
committerPhil Sutter <phil@nwl.cc>2020-03-16 13:15:09 +0100
commita8afaf7c762e247637fa9c027ed7d81a692f08ec (patch)
tree8888c243c2ba23995f0e954d94445d6a5e11f9f4 /iptables/nft-cache.c
parent94c858c8665c4a7370d9628953f2e034fe73fc60 (diff)
nft: cache: Fix for unused variable warnings
Loop index variable was left in place after removing the loops. Fixes: 39ec645093baa ("nft: cache: Simplify chain list allocation") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-cache.c')
-rw-r--r--iptables/nft-cache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/iptables/nft-cache.c b/iptables/nft-cache.c
index 0dd131e1..e3c96557 100644
--- a/iptables/nft-cache.c
+++ b/iptables/nft-cache.c
@@ -331,7 +331,7 @@ static int fetch_chain_cache(struct nft_handle *h,
};
char buf[16536];
struct nlmsghdr *nlh;
- int i, ret;
+ int ret;
if (t && chain) {
struct nftnl_chain *c = nftnl_chain_alloc();
@@ -516,8 +516,6 @@ void nft_build_cache(struct nft_handle *h, struct nftnl_chain *c)
void nft_fake_cache(struct nft_handle *h)
{
- int i;
-
fetch_table_cache(h);
init_chain_cache(h);