summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp/packet.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-02-13 13:49:31 +0100
committerKozlov Dmitry <xeb@mail.ru>2013-02-13 17:24:03 +0400
commitd147dd05ef83e9b08efefff9b93ab8595b02a5cf (patch)
tree6582c3fe813e23d2fd3ee0789d6942831902f98b /accel-pppd/ctrl/l2tp/packet.c
parentf03ef414d049948962b28e4d78c4022c192f7ea1 (diff)
downloadaccel-ppp-d147dd05ef83e9b08efefff9b93ab8595b02a5cf.tar.gz
accel-ppp-d147dd05ef83e9b08efefff9b93ab8595b02a5cf.zip
l2tp: Add const qualifier to packet allocation function
Define the address parameter of l2tp_packet_alloc() as constant. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ctrl/l2tp/packet.c')
-rw-r--r--accel-pppd/ctrl/l2tp/packet.c3
1 files changed, 2 insertions, 1 deletions
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)