diff options
author | David S. Miller <davem@davemloft.net> | 2010-03-16 14:37:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-16 14:37:47 -0700 |
commit | 87faf3ccf1c939938600ab57c6c9ed5bd2e5f4cc (patch) | |
tree | fdfec5682c7c5e4e1ac462ae25e0537a1b9d429c /net/bridge | |
parent | 32dec5dd0233ebffa9cae25ce7ba6daeb7df4467 (diff) | |
download | linux-87faf3ccf1c939938600ab57c6c9ed5bd2e5f4cc.tar.gz linux-87faf3ccf1c939938600ab57c6c9ed5bd2e5f4cc.tar.bz2 linux-87faf3ccf1c939938600ab57c6c9ed5bd2e5f4cc.zip |
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.c | 6 |
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 @@ #include <linux/netfilter_bridge.h> #include "br_private.h" -static int deliver_clone(struct net_bridge_port *prev, struct sk_buff *skb, +static int deliver_clone(const struct net_bridge_port *prev, + struct sk_buff *skb, void (*__packet_hook)(const struct net_bridge_port *p, struct sk_buff *skb)); @@ -112,7 +113,8 @@ void br_forward(const struct net_bridge_port *to, struct sk_buff *skb, struct sk kfree_skb(skb); } -static int deliver_clone(struct net_bridge_port *prev, struct sk_buff *skb, +static int deliver_clone(const struct net_bridge_port *prev, + struct sk_buff *skb, void (*__packet_hook)(const struct net_bridge_port *p, struct sk_buff *skb)) { |