xfrm_user: avoid a warning with some compiler
Subsystems (3)
PATCH 1/1 xfrm_user: avoid a warning with some compiler
Attached is a small patch to remove a warning ("warning: ISO C90 forbids mixed declarations and code" with gcc 4.3.2).
Regards,
Nicolas
Quoted 1 line
From
94b066b7f650bda6ef1392a18c5d3014bcc05d6aMon Sep 17 00:00:00 2001
From: Nicolas Dichtel <[email protected]>
Date: Tue, 31 Aug 2010 17:41:05 +0200
Subject: [PATCH] xfrm_user: avoid a warning with some compiler
Signed-off-by Nicolas Dichtel <[email protected]>
--- net/xfrm/xfrm_user.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/xfrm/xfrm_user.c +1 -1
@@ -1801,7 +1801,7 @@ static int xfrm_add_sa_expire(struct sk_buff *skb, struct nlmsghdr *nlh,struct xfrm_user_expire *ue =nlmsg_data (nlh);struct xfrm_usersa_info *p = &ue->state;struct xfrm_mark m; -u32 mark =xfrm_mark_get (attrs, &m);; +u32 mark =xfrm_mark_get (attrs, &m); x =xfrm_state_lookup (net, mark, &p->id.daddr, p->id.spi, p->id.proto, p->family);
Signature · 1 line
1.5.6.5
From: Nicolas Dichtel <[email protected]>
Date: Tue, 31 Aug 2010 17:54:00 +0200
Quoted 2 lines
Attached is a small patch to remove a warning ("warning: ISO C90 forbids mixed declarations and code" with gcc 4.3.2).
Applied.