aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-03-16 17:37:47 -0400
committerDavid S. Miller <davem@davemloft.net>2010-03-16 17:37:47 -0400
commit87faf3ccf1c939938600ab57c6c9ed5bd2e5f4cc (patch)
treefdfec5682c7c5e4e1ac462ae25e0537a1b9d429c /net/bridge
parent32dec5dd0233ebffa9cae25ce7ba6daeb7df4467 (diff)
bridge: Make first arg to deliver_clone const.
Otherwise we get a warning from the call in br_forward(). Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_forward.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c
index 8347916efe88..8dbec83e50ca 100644
--- a/net/bridge/br_forward.c
+++ b/net/bridge/br_forward.c
@@ -19,7 +19,8 @@
19#include <linux/netfilter_bridge.h> 19#include <linux/netfilter_bridge.h>
20#include "br_private.h" 20#include "br_private.h"
21 21
22static int deliver_clone(struct net_bridge_port *prev, struct sk_buff *skb, 22static int deliver_clone(const struct net_bridge_port *prev,
23 struct sk_buff *skb,
23 void (*__packet_hook)(const struct net_bridge_port *p, 24 void (*__packet_hook)(const struct net_bridge_port *p,
24 struct sk_buff *skb)); 25 struct sk_buff *skb));
25 26
@@ -112,7 +113,8 @@ void br_forward(const struct net_bridge_port *to, struct sk_buff *skb, struct sk
112 kfree_skb(skb); 113 kfree_skb(skb);
113} 114}
114 115
115static int deliver_clone(struct net_bridge_port *prev, struct sk_buff *skb, 116static int deliver_clone(const struct net_bridge_port *prev,
117 struct sk_buff *skb,
116 void (*__packet_hook)(const struct net_bridge_port *p, 118 void (*__packet_hook)(const struct net_bridge_port *p,
117 struct sk_buff *skb)) 119 struct sk_buff *skb))
118{ 120{