aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-07 15:25:48 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2014-03-13 08:08:50 +0100
commit30e0e36b9e6098403ac405c5e9dc65ef7ddef6bd (patch)
treeb76225f6e276e6f69523a6c3d62bf29c990e3fee /openbsc/src/libbsc
parent2c74baa28e49deab88b31e3f8e43a3b44282eb83 (diff)
HACK: Fix of several compiler warningsjolly/testing
Diffstat (limited to 'openbsc/src/libbsc')
-rw-r--r--openbsc/src/libbsc/abis_nm.c4
-rw-r--r--openbsc/src/libbsc/bsc_api.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/abis_nm.c b/openbsc/src/libbsc/abis_nm.c
index f491a0c20..4b5e42042 100644
--- a/openbsc/src/libbsc/abis_nm.c
+++ b/openbsc/src/libbsc/abis_nm.c
@@ -1742,12 +1742,14 @@ static int __simple_cmd(struct gsm_bts *bts, uint8_t msg_type)
int abis_nm_opstart(struct gsm_bts *bts, uint8_t obj_class, uint8_t i0, uint8_t i1, uint8_t i2)
{
struct abis_om_hdr *oh;
+ struct abis_om_fom_hdr *foh;
struct msgb *msg = nm_msgb_alloc();
oh = (struct abis_om_hdr *) msgb_put(msg, ABIS_OM_FOM_HDR_SIZE);
+ foh = (struct abis_om_fom_hdr *) oh->data;
fill_om_fom_hdr(oh, 0, NM_MT_OPSTART, obj_class, i0, i1, i2);
- abis_nm_debugp_foh(DNM, (struct abis_om_fom_hdr *) oh->data);
+ abis_nm_debugp_foh(DNM, foh);
DEBUGPC(DNM, "Sending OPSTART\n");
return abis_nm_sendmsg(bts, msg);
diff --git a/openbsc/src/libbsc/bsc_api.c b/openbsc/src/libbsc/bsc_api.c
index 81003ddbd..22a0543e1 100644
--- a/openbsc/src/libbsc/bsc_api.c
+++ b/openbsc/src/libbsc/bsc_api.c
@@ -90,7 +90,8 @@ static uint8_t lchan_to_chosen_channel(struct gsm_lchan *lchan)
channel = 0x9;
break;
case GSM_LCHAN_UNKNOWN:
- LOGP(DMSC, LOGL_ERROR, "Unknown lchan type: %p\n", lchan);
+ default:
+ LOGP(DMSC, LOGL_ERROR, "Unknown lchan type: %u\n", lchan->type);
break;
}