From 2e22a5d85df68fb2354c3ede0e7cd06dc6bc82fe Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 23 May 2010 21:11:19 +0800 Subject: [PATCH] gprs_bssgp.c: Cast const of TLVP_VAL away. Fix a compiler warning, we cast the const away at various other parts in the code as well. We should consider removing the const from the TLV struct.. --- openbsc/src/gprs/gprs_bssgp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsc/src/gprs/gprs_bssgp.c b/openbsc/src/gprs/gprs_bssgp.c index d5ff44d87..0d60ac9c1 100644 --- a/openbsc/src/gprs/gprs_bssgp.c +++ b/openbsc/src/gprs/gprs_bssgp.c @@ -256,8 +256,8 @@ static int bssgp_rx_ul_ud(struct msgb *msg, struct tlv_parsed *tp, return bssgp_tx_status(BSSGP_CAUSE_MISSING_MAND_IE, NULL, msg); /* store pointer to LLC header and CELL ID in msgb->cb */ - msgb_llch(msg) = TLVP_VAL(tp, BSSGP_IE_LLC_PDU); - msgb_bcid(msg) = TLVP_VAL(tp, BSSGP_IE_CELL_ID); + msgb_llch(msg) = (uint8_t *) TLVP_VAL(tp, BSSGP_IE_LLC_PDU); + msgb_bcid(msg) = (uint8_t *) TLVP_VAL(tp, BSSGP_IE_CELL_ID); return gprs_llc_rcvmsg(msg, tp); }