From 4cc9f0befecc409684adab0b2924a763ec31b807 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 26 Apr 2016 12:14:10 +0200 Subject: flowtop: Use fl argument instead of hard coded global flow_list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The only place where flow_list_update_entry() is called passes the global flow_list anyway, so use the passed argument instead of the global. This fixes the following -Wunused-parameter warning: flowtop.c: In function ‘flow_list_update_entry’: flowtop.c:1438:53: warning: unused parameter ‘fl’ [-Wunused-parameter] static int flow_list_update_entry(struct flow_list *fl, struct nf_conntrack *ct) Signed-off-by: Tobias Klauser --- flowtop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flowtop.c b/flowtop.c index 848fd6a..b2f67ea 100644 --- a/flowtop.c +++ b/flowtop.c @@ -1439,7 +1439,7 @@ static int flow_list_update_entry(struct flow_list *fl, struct nf_conntrack *ct) { struct flow_entry *n; - n = flow_list_find_id(&flow_list, nfct_get_attr_u32(ct, ATTR_ID)); + n = flow_list_find_id(fl, nfct_get_attr_u32(ct, ATTR_ID)); if (!n) return NFCT_CB_CONTINUE; -- cgit v1.2.3-54-g00ecf