diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-23 21:43:57 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-23 21:43:57 +0800 |
commit | fa848d4923001eab4686ab3038e46021edca5e80 (patch) | |
tree | 69dac8f49a383e90be7f7cccd0cb2d310054b8d5 /openbsc/src/gprs/gprs_llc.c | |
parent | 3a6fdcd717f02a1317ce3b0074c0177a6e61a779 (diff) |
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.
Diffstat (limited to 'openbsc/src/gprs/gprs_llc.c')
-rw-r--r-- | openbsc/src/gprs/gprs_llc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c index 5394f11be..293c6579d 100644 --- a/openbsc/src/gprs/gprs_llc.c +++ b/openbsc/src/gprs/gprs_llc.c @@ -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"); |