gprs: Cast the lh to uint_8* and make the other method non-const
We are assigning the header to non const methods... so make the param non-const.
This commit is contained in:
parent
3a6fdcd717
commit
fa848d4923
|
@ -321,7 +321,7 @@ static int gprs_llc_hdr_rx(struct gprs_llc_hdr_parsed *gph,
|
|||
|
||||
/* parse a GPRS LLC header, also check for invalid frames */
|
||||
static int gprs_llc_hdr_parse(struct gprs_llc_hdr_parsed *ghp,
|
||||
const uint8_t *llc_hdr, int len)
|
||||
uint8_t *llc_hdr, int len)
|
||||
{
|
||||
uint8_t *ctrl = llc_hdr+1;
|
||||
int is_sack = 0;
|
||||
|
@ -497,7 +497,7 @@ int gprs_llc_rcvmsg(struct msgb *msg, struct tlv_parsed *tv)
|
|||
/* Identifiers from DOWN: NSEI, BVCI, TLLI */
|
||||
|
||||
memset(&llhp, 0, sizeof(llhp));
|
||||
rc = gprs_llc_hdr_parse(&llhp, lh, TLVP_LEN(tv, BSSGP_IE_LLC_PDU));
|
||||
rc = gprs_llc_hdr_parse(&llhp, (uint8_t *) lh, TLVP_LEN(tv, BSSGP_IE_LLC_PDU));
|
||||
gprs_llc_hdr_dump(&llhp);
|
||||
if (rc < 0) {
|
||||
LOGP(DLLC, LOGL_NOTICE, "Error during LLC header parsing\n");
|
||||
|
|
Loading…
Reference in New Issue