Commit dc4c399d authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller
Browse files

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: default avatarGuillaume Nault <gnault@redhat.com>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5bc67a85
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);