From 5906bcf10d0eda9d08c98a618ea7c8ade0018e0c Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 8 May 2020 15:40:52 +0200 Subject: nft: Drop save_counters callback from family_ops All families use the same callback function, just fold it into the sole place it's called. Signed-off-by: Phil Sutter --- iptables/nft-shared.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'iptables/nft-shared.c') diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index 53cd4cae..c5a8f3fc 100644 --- a/iptables/nft-shared.c +++ b/iptables/nft-shared.c @@ -831,14 +831,6 @@ void save_rule_details(const struct iptables_command_state *cs, } } -void save_counters(const void *data) -{ - const struct iptables_command_state *cs = data; - - printf("[%llu:%llu] ", (unsigned long long)cs->counters.pcnt, - (unsigned long long)cs->counters.bcnt); -} - void nft_ipv46_save_chain(const struct nftnl_chain *c, const char *policy) { const char *chain = nftnl_chain_get_str(c, NFTNL_CHAIN_NAME); -- cgit v1.2.3