From fa848d4923001eab4686ab3038e46021edca5e80 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 23 May 2010 21:43:57 +0800 Subject: 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. --- openbsc/src/gprs/gprs_llc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc') 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"); -- cgit v1.2.3