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..
This commit is contained in:
Holger Hans Peter Freyther 2010-05-23 21:11:19 +08:00
parent cbac76ee0e
commit 2e22a5d85d
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}