diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-09-21 02:43:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-21 21:04:47 -0400 |
commit | 756e64a0b106f1a2ca96889c39ea0d48131105c0 (patch) | |
tree | aab1079dc10deebcdc0dfeaf6e009f9371131668 /drivers/net/pppox.c | |
parent | a9478e386165477504916094ae5efb073a44fd9f (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/pppox.c')
-rw-r--r-- | drivers/net/pppox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pppox.c b/drivers/net/pppox.c index d4191ef9cad1..8c0d170dabcd 100644 --- a/drivers/net/pppox.c +++ b/drivers/net/pppox.c | |||
@@ -36,9 +36,9 @@ | |||
36 | 36 | ||
37 | #include <asm/uaccess.h> | 37 | #include <asm/uaccess.h> |
38 | 38 | ||
39 | static struct pppox_proto *pppox_protos[PX_MAX_PROTO + 1]; | 39 | static const struct pppox_proto *pppox_protos[PX_MAX_PROTO + 1]; |
40 | 40 | ||
41 | int register_pppox_proto(int proto_num, struct pppox_proto *pp) | 41 | int register_pppox_proto(int proto_num, const struct pppox_proto *pp) |
42 | { | 42 | { |
43 | if (proto_num < 0 || proto_num > PX_MAX_PROTO) | 43 | if (proto_num < 0 || proto_num > PX_MAX_PROTO) |
44 | return -EINVAL; | 44 | return -EINVAL; |