diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-02-13 13:49:31 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-13 17:24:03 +0400 |
commit | d147dd05ef83e9b08efefff9b93ab8595b02a5cf (patch) | |
tree | 6582c3fe813e23d2fd3ee0789d6942831902f98b /accel-pppd/ctrl/l2tp/packet.c | |
parent | f03ef414d049948962b28e4d78c4022c192f7ea1 (diff) | |
download | accel-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.c | 3 |
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) |