fix two compiler warnings

This commit is contained in:
Harald Welte 2009-05-23 06:11:13 +00:00
parent 04d3c9224f
commit 75d34a8b3d
1 changed files with 2 additions and 1 deletions

View File

@ -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)