net: constify some ppp/pptp structs

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet
2010-09-21 06:43:54 +00:00
committed by David S. Miller
parent a9478e3861
commit 756e64a0b1
5 changed files with 9 additions and 9 deletions

View File

@@ -36,9 +36,9 @@
#include <asm/uaccess.h>
static struct pppox_proto *pppox_protos[PX_MAX_PROTO + 1];
static const struct pppox_proto *pppox_protos[PX_MAX_PROTO + 1];
int register_pppox_proto(int proto_num, struct pppox_proto *pp)
int register_pppox_proto(int proto_num, const struct pppox_proto *pp)
{
if (proto_num < 0 || proto_num > PX_MAX_PROTO)
return -EINVAL;