diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-02-11 21:02:30 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-12 00:12:48 +0400 |
commit | da4739b14071ef71f99c747ac2118924d525c3d5 (patch) | |
tree | ed6831fea58aa05238e047f3c77ba75d9daaa9dc /accel-pppd | |
parent | 9f831d04a54d4f2f36c90e6914018be5eb9d09ff (diff) | |
download | accel-ppp-da4739b14071ef71f99c747ac2118924d525c3d5.tar.gz accel-ppp-da4739b14071ef71f99c747ac2118924d525c3d5.zip |
l2tp: Remove unused parameter in tunnel allocation
Remove the "serv" parameter from l2tp_tunnel_alloc() prototype.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 2d0701c..9dc0d26 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; |