All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfrm_user: avoid a warning with some compiler
@ 2010-08-31 15:54 Nicolas Dichtel
  2010-09-01 21:30 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Dichtel @ 2010-08-31 15:54 UTC (permalink / raw)
  To: netdev

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

Attached is a small patch to remove a warning ("warning: ISO C90 forbids 
mixed declarations and code" with gcc 4.3.2).

Regards,
Nicolas

[-- Attachment #2: 0001-xfrm_user-avoid-a-warning-with-some-compiler.patch --]
[-- Type: text/x-diff, Size: 901 bytes --]

>From 94b066b7f650bda6ef1392a18c5d3014bcc05d6a Mon Sep 17 00:00:00 2001
From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date: Tue, 31 Aug 2010 17:41:05 +0200
Subject: [PATCH] xfrm_user: avoid a warning with some compiler

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 net/xfrm/xfrm_user.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index b14ed4b..8bae6b2 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -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);
 
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] xfrm_user: avoid a warning with some compiler
  2010-08-31 15:54 [PATCH] xfrm_user: avoid a warning with some compiler Nicolas Dichtel
@ 2010-09-01 21:30 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-09-01 21:30 UTC (permalink / raw)
  To: nicolas.dichtel; +Cc: netdev

From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date: Tue, 31 Aug 2010 17:54:00 +0200

> Attached is a small patch to remove a warning ("warning: ISO C90
> forbids mixed declarations and code" with gcc 4.3.2).

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-01 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-31 15:54 [PATCH] xfrm_user: avoid a warning with some compiler Nicolas Dichtel
2010-09-01 21:30 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.