summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-26 12:14:10 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-26 12:14:10 +0200
commit4cc9f0befecc409684adab0b2924a763ec31b807 (patch)
tree6082f23f8fef21d935abeca89bd389bbae30576a
parentdc504fa7f8ff8672f47ad339b4d2f73d594b293a (diff)
flowtop: Use fl argument instead of hard coded global flow_list
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 <tklauser@distanz.ch>
-rw-r--r--flowtop.c2
1 files changed, 1 insertions, 1 deletions
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;