summaryrefslogtreecommitdiffstats
path: root/unmaintained/ipt-netflow-grsec/0001-Fix-compilation-with-3.9.y-kernel.patch
blob: f3cbfae429b98cf97538c59ac18ef50b72f104b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 2f4b540bb2e60aca47263cf0fd2b3abc0a499d87 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 14 May 2013 07:25:47 +0000
Subject: [PATCH] Fix compilation with 3.9.y kernel

use new hlist_for_each api
---
 ipt_NETFLOW.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ipt_NETFLOW.c b/ipt_NETFLOW.c
index d4c91e1..4e1b9f3 100644
--- a/ipt_NETFLOW.c
+++ b/ipt_NETFLOW.c
@@ -854,9 +854,7 @@ static struct ipt_netflow *
 ipt_netflow_find(const struct ipt_netflow_tuple *tuple, unsigned int hash)
 {
 	struct ipt_netflow *nf;
-	struct hlist_node *pos;
-
-	hlist_for_each_entry(nf, pos, &ipt_netflow_hash[hash], hlist) {
+	hlist_for_each_entry(nf, &ipt_netflow_hash[hash], hlist) {
 		if (ipt_netflow_tuple_equal(tuple, &nf->tuple) &&
 		    nf->nr_bytes < FLOW_FULL_WATERMARK) {
 			NETFLOW_STAT_INC(found);
-- 
1.8.2.2