diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-04-26 12:14:10 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-04-26 12:14:10 +0200 |
commit | 4cc9f0befecc409684adab0b2924a763ec31b807 (patch) | |
tree | 6082f23f8fef21d935abeca89bd389bbae30576a /flowtop.c | |
parent | dc504fa7f8ff8672f47ad339b4d2f73d594b293a (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>
Diffstat (limited to 'flowtop.c')
-rw-r--r-- | flowtop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |