aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-10-22 15:42:19 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-10-22 15:42:19 +0200
commit8b77a34131243986fd1f0d4b9a637c652e6109d8 (patch)
tree349949477cf997a4eaa2e04d4123a0110270d54b /openbsc/src
parentdc1e1058f3407dcda6c2cf42deabb863e2a80702 (diff)
[rrlp] Fix compiler warnings
The apdu is static const u_int8_t. Change the signature to have a const in there to make the compiler happy, include chan_alloc.h for lchan methods.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/gsm_04_08.c2
-rw-r--r--openbsc/src/rrlp.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index addfeb017..40505e651 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -1643,7 +1643,7 @@ static int gsm0408_rcv_rr(struct msgb *msg)
}
int gsm48_send_rr_app_info(struct gsm_lchan *lchan, u_int8_t apdu_id,
- u_int8_t apdu_len, u_int8_t *apdu)
+ u_int8_t apdu_len, const u_int8_t *apdu)
{
struct msgb *msg = gsm48_msgb_alloc();
struct gsm48_hdr *gh;
diff --git a/openbsc/src/rrlp.c b/openbsc/src/rrlp.c
index 61bb20244..523b53f0b 100644
--- a/openbsc/src/rrlp.c
+++ b/openbsc/src/rrlp.c
@@ -26,6 +26,7 @@
#include <openbsc/gsm_04_08.h>
#include <openbsc/signal.h>
#include <openbsc/gsm_subscriber.h>
+#include <openbsc/chan_alloc.h>
/* RRLP MS based position request */
static const u_int8_t ms_based_pos_req[] = { 0x40, 0x01, 0x78, 0xa8 };