diff options
author | Lin Zhang <xiaolou4617@gmail.com> | 2017-10-06 01:40:35 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-07 23:15:08 +0100 |
commit | 548ec114705bb8f0879a0da12abec17f17a7cc26 (patch) | |
tree | 2109c7f34d7bea667c3a0540470dbf644016e0bd /include | |
parent | 64237470ddf97b63155fbd272c9e743e01d5f514 (diff) |
net: phonet: mark phonet_protocol as const
The phonet_protocol structs don't need to be written by anyone and
so can be marked as const.
Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/phonet/phonet.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/phonet/phonet.h b/include/net/phonet/phonet.h index 039cc29cb4a8..51e1a2a45d02 100644 --- a/include/net/phonet/phonet.h +++ b/include/net/phonet/phonet.h @@ -108,8 +108,10 @@ struct phonet_protocol { int sock_type; }; -int phonet_proto_register(unsigned int protocol, struct phonet_protocol *pp); -void phonet_proto_unregister(unsigned int protocol, struct phonet_protocol *pp); +int phonet_proto_register(unsigned int protocol, + const struct phonet_protocol *pp); +void phonet_proto_unregister(unsigned int protocol, + const struct phonet_protocol *pp); int phonet_sysctl_init(void); void phonet_sysctl_exit(void); |