summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-05-23 06:11:13 +0000
committerHarald Welte <laforge@gnumonks.org>2009-05-23 06:11:13 +0000
commit75d34a8b3dd884bcb6fb0ec32954e1b15e92c203 (patch)
treec74cdee70bad4e1576bc8b94742d580ecce70002 /src
parent04d3c9224fa7f1ea78484fc5b56ae6908241213d (diff)
fix two compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/abis_rsl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/abis_rsl.c b/src/abis_rsl.c
index e4494e4e8..e7f953e0c 100644
--- a/src/abis_rsl.c
+++ b/src/abis_rsl.c
@@ -691,7 +691,7 @@ static int rsl_rx_meas_res(struct msgb *msg)
DEBUGPC(DRSL, "NR=%d ", *TLVP_VAL(&tp, RSL_IE_MEAS_RES_NR));
if (TLVP_PRESENT(&tp, RSL_IE_UPLINK_MEAS)) {
u_int8_t len = TLVP_LEN(&tp, RSL_IE_UPLINK_MEAS);
- u_int8_t *val = TLVP_VAL(&tp, RSL_IE_UPLINK_MEAS);
+ const u_int8_t *val = TLVP_VAL(&tp, RSL_IE_UPLINK_MEAS);
if (len >= 3) {
if (val[0] & 0x40)
DEBUGPC(DRSL, "DTXd ");
@@ -710,6 +710,7 @@ static int rsl_rx_meas_res(struct msgb *msg)
if (TLVP_PRESENT(&tp, RSL_IE_MS_TIMING_OFFSET))
DEBUGPC(DRSL, "MS_TO=%d ",
*TLVP_VAL(&tp, RSL_IE_MS_TIMING_OFFSET));
+ return 0;
}
static int abis_rsl_rx_dchan(struct msgb *msg)