net: mark net_proto_ops as const
All usages of structure net_proto_ops should be declared const. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f7734fdf61
commit
ec1b4cf74c
@ -121,7 +121,7 @@ struct bt_sock_list {
|
||||
rwlock_t lock;
|
||||
};
|
||||
|
||||
int bt_sock_register(int proto, struct net_proto_family *ops);
|
||||
int bt_sock_register(int proto, const struct net_proto_family *ops);
|
||||
int bt_sock_unregister(int proto);
|
||||
void bt_sock_link(struct bt_sock_list *l, struct sock *s);
|
||||
void bt_sock_unlink(struct bt_sock_list *l, struct sock *s);
|
||||
|
Reference in New Issue
Block a user