diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-08-04 03:34:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-05 00:53:17 -0400 |
commit | d7100da026317fcf07411f765fe1cdb044053917 (patch) | |
tree | 97e9ecbde1575173684a357ad00960384ec7d1db /drivers/net/pppoe.c | |
parent | 3b5bac2bdea1de832bdd8e2c904ab7c9479ff9ed (diff) |
ppp: make channel_ops const
The PPP channel ops structure should be const.
Cleanup the declarations to use standard C99 format.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pppoe.c')
-rw-r--r-- | drivers/net/pppoe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index 344ef330e123..c07de359dc07 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c | |||
@@ -92,7 +92,7 @@ | |||
92 | static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb); | 92 | static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb); |
93 | 93 | ||
94 | static const struct proto_ops pppoe_ops; | 94 | static const struct proto_ops pppoe_ops; |
95 | static struct ppp_channel_ops pppoe_chan_ops; | 95 | static const struct ppp_channel_ops pppoe_chan_ops; |
96 | 96 | ||
97 | /* per-net private data for this module */ | 97 | /* per-net private data for this module */ |
98 | static int pppoe_net_id __read_mostly; | 98 | static int pppoe_net_id __read_mostly; |
@@ -963,7 +963,7 @@ static int pppoe_xmit(struct ppp_channel *chan, struct sk_buff *skb) | |||
963 | return __pppoe_xmit(sk, skb); | 963 | return __pppoe_xmit(sk, skb); |
964 | } | 964 | } |
965 | 965 | ||
966 | static struct ppp_channel_ops pppoe_chan_ops = { | 966 | static const struct ppp_channel_ops pppoe_chan_ops = { |
967 | .start_xmit = pppoe_xmit, | 967 | .start_xmit = pppoe_xmit, |
968 | }; | 968 | }; |
969 | 969 | ||