aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pptp.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-09-21 02:43:54 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-21 21:04:47 -0400
commit756e64a0b106f1a2ca96889c39ea0d48131105c0 (patch)
treeaab1079dc10deebcdc0dfeaf6e009f9371131668 /drivers/net/pptp.c
parenta9478e386165477504916094ae5efb073a44fd9f (diff)
net: constify some ppp/pptp structs
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pptp.c')
-rw-r--r--drivers/net/pptp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/pptp.c b/drivers/net/pptp.c
index 761f0eced724..ccbc91326bfa 100644
--- a/drivers/net/pptp.c
+++ b/drivers/net/pptp.c
@@ -53,7 +53,7 @@ static struct pppox_sock **callid_sock;
53static DEFINE_SPINLOCK(chan_lock); 53static DEFINE_SPINLOCK(chan_lock);
54 54
55static struct proto pptp_sk_proto __read_mostly; 55static struct proto pptp_sk_proto __read_mostly;
56static struct ppp_channel_ops pptp_chan_ops; 56static const struct ppp_channel_ops pptp_chan_ops;
57static const struct proto_ops pptp_ops; 57static const struct proto_ops pptp_ops;
58 58
59#define PPP_LCP_ECHOREQ 0x09 59#define PPP_LCP_ECHOREQ 0x09
@@ -628,7 +628,7 @@ static int pptp_ppp_ioctl(struct ppp_channel *chan, unsigned int cmd,
628 return err; 628 return err;
629} 629}
630 630
631static struct ppp_channel_ops pptp_chan_ops = { 631static const struct ppp_channel_ops pptp_chan_ops = {
632 .start_xmit = pptp_xmit, 632 .start_xmit = pptp_xmit,
633 .ioctl = pptp_ppp_ioctl, 633 .ioctl = pptp_ppp_ioctl,
634}; 634};
@@ -659,12 +659,12 @@ static const struct proto_ops pptp_ops = {
659 .ioctl = pppox_ioctl, 659 .ioctl = pppox_ioctl,
660}; 660};
661 661
662static struct pppox_proto pppox_pptp_proto = { 662static const struct pppox_proto pppox_pptp_proto = {
663 .create = pptp_create, 663 .create = pptp_create,
664 .owner = THIS_MODULE, 664 .owner = THIS_MODULE,
665}; 665};
666 666
667static struct gre_protocol gre_pptp_protocol = { 667static const struct gre_protocol gre_pptp_protocol = {
668 .handler = pptp_rcv, 668 .handler = pptp_rcv,
669}; 669};
670 670