From da4739b14071ef71f99c747ac2118924d525c3d5 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Mon, 11 Feb 2013 21:02:30 +0100 Subject: l2tp: Remove unused parameter in tunnel allocation Remove the "serv" parameter from l2tp_tunnel_alloc() prototype. Signed-off-by: Guillaume Nault --- accel-pppd/ctrl/l2tp/l2tp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 2d0701cd..9dc0d26e 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -788,8 +788,7 @@ out_err: return -1; } -static struct l2tp_conn_t *l2tp_tunnel_alloc(struct l2tp_serv_t *serv, - const struct sockaddr_in *peer, +static struct l2tp_conn_t *l2tp_tunnel_alloc(const struct sockaddr_in *peer, const struct sockaddr_in *host, uint32_t framing_cap) { @@ -1315,7 +1314,7 @@ static int l2tp_recv_SCCRQ(struct l2tp_serv_t *serv, struct l2tp_packet_t *pack, host_addr.sin_addr = pkt_info->ipi_addr; host_addr.sin_port = 0; - conn = l2tp_tunnel_alloc(serv, &pack->addr, &host_addr, + conn = l2tp_tunnel_alloc(&pack->addr, &host_addr, framing_cap->val.uint32); if (conn == NULL) return -1; -- cgit v1.2.3