diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-02-13 13:49:47 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-13 17:24:03 +0400 |
commit | 18f638a0c593d08431f5ef2540f62e0b15e17c69 (patch) | |
tree | 1866103e5300d250243d33e6bb5e3e184d708d8e | |
parent | cdc83cc90117dd825898159c7f088c062a15e654 (diff) | |
download | accel-ppp-18f638a0c593d08431f5ef2540f62e0b15e17c69.tar.gz accel-ppp-18f638a0c593d08431f5ef2540f62e0b15e17c69.zip |
l2tp: Define message type attribute as constant
Add const qualifier to the Message Type variable used by the generic
L2TP reception functions.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 2eac4f8a..2eb09a41 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -2085,7 +2085,7 @@ static void l2tp_session_recv(void *data) struct triton_context_t *ctx = triton_context_self(); struct l2tp_sess_t *sess = container_of(ctx, typeof(*sess), sctx); struct l2tp_packet_t *pack = data; - struct l2tp_attr_t *msg_type = NULL; + const struct l2tp_attr_t *msg_type = NULL; msg_type = list_entry(pack->attrs.next, typeof(*msg_type), entry); @@ -2124,7 +2124,7 @@ static int l2tp_conn_read(struct triton_md_handler_t *h) struct l2tp_conn_t *conn = container_of(h, typeof(*conn), hnd); struct l2tp_sess_t *sess = NULL; struct l2tp_packet_t *pack, *p; - struct l2tp_attr_t *msg_type; + const struct l2tp_attr_t *msg_type; int res; while (1) { @@ -2289,7 +2289,7 @@ static int l2tp_udp_read(struct triton_md_handler_t *h) { struct l2tp_serv_t *serv = container_of(h, typeof(*serv), hnd); struct l2tp_packet_t *pack; - struct l2tp_attr_t *msg_type; + const struct l2tp_attr_t *msg_type; struct in_pktinfo pkt_info; while (1) { |