From d147dd05ef83e9b08efefff9b93ab8595b02a5cf Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 13 Feb 2013 13:49:31 +0100 Subject: l2tp: Add const qualifier to packet allocation function Define the address parameter of l2tp_packet_alloc() as constant. Signed-off-by: Guillaume Nault --- accel-pppd/ctrl/l2tp/packet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'accel-pppd/ctrl/l2tp/packet.c') diff --git a/accel-pppd/ctrl/l2tp/packet.c b/accel-pppd/ctrl/l2tp/packet.c index 3385956..87735a2 100644 --- a/accel-pppd/ctrl/l2tp/packet.c +++ b/accel-pppd/ctrl/l2tp/packet.c @@ -57,7 +57,8 @@ void l2tp_packet_print(const struct l2tp_packet_t *pack, print("]\n"); } -struct l2tp_packet_t *l2tp_packet_alloc(int ver, int msg_type, struct sockaddr_in *addr) +struct l2tp_packet_t *l2tp_packet_alloc(int ver, int msg_type, + const struct sockaddr_in *addr) { struct l2tp_packet_t *pack = mempool_alloc(pack_pool); if (!pack) -- cgit v1.2.3