mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue