[Openswan dev] [PATCH] fix unused variable warnings

Gilles Espinasse g.esp at free.fr
Sat Jun 20 05:32:03 EDT 2009


 /usr/src/openswan-2.6.22rc2/modobj26/ipsec_rcv.c:2067: warning: unused variable 'i'
 /usr/src/openswan-2.6.22rc2/modobj26/ipsec_rcv.c:2066: warning: unused variable 'prv'
 /usr/src/openswan-2.6.22rc2/modobj26/ipsec_rcv.c:2065: warning: unused variable 'prvdev'
 /usr/src/openswan-2.6.22rc2/modobj26/ipsec_rcv.c:2065: warning: unused variable 'ipsecdev'
 /usr/src/openswan-2.6.22rc2/modobj26/ipsec_rcv.c:2064: warning: unused variable 'name'

Signed-off-by: Gilles Espinasse <g.esp at free.fr>
---
 linux/net/ipsec/ipsec_rcv.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/linux/net/ipsec/ipsec_rcv.c b/linux/net/ipsec/ipsec_rcv.c
index e99d09e..05bbbcb 100644
--- a/linux/net/ipsec/ipsec_rcv.c
+++ b/linux/net/ipsec/ipsec_rcv.c
@@ -2061,10 +2061,6 @@ drop:
 int klips26_rcv_encap(struct sk_buff *skb, __u16 encap_type)
 {
 	struct ipsec_rcv_state *irs = NULL;
-	char name[IFNAMSIZ];
-	struct net_device *ipsecdev = NULL, *prvdev = NULL;
-	struct ipsecpriv *prv = NULL;
-	int i;
 
 	/* Don't unlink in the middle of a turnaround */
 	KLIPS_INC_USE;
-- 
1.6.0.6



More information about the Dev mailing list