mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 22:05:08 +00:00
pptp: Constify the po parameter of pptp_route_output().
Make it explicit that this function doesn't modify the socket passed as parameter. Signed-off-by: Guillaume Nault <gnault@redhat.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5bc67a854c
commit
dc4c399d21
@ -129,10 +129,10 @@ static void del_chan(struct pppox_sock *sock)
|
||||
spin_unlock(&chan_lock);
|
||||
}
|
||||
|
||||
static struct rtable *pptp_route_output(struct pppox_sock *po,
|
||||
static struct rtable *pptp_route_output(const struct pppox_sock *po,
|
||||
struct flowi4 *fl4)
|
||||
{
|
||||
struct sock *sk = &po->sk;
|
||||
const struct sock *sk = &po->sk;
|
||||
struct net *net;
|
||||
|
||||
net = sock_net(sk);
|
||||
|
Loading…
x
Reference in New Issue
Block a user