aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-18 04:07:01 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-12-18 23:14:58 +0000
commit9baedafa244e19624a7c115f2fa8d5d96c657937 (patch)
tree4aa89b5034a3a5299ffaeacb49806ebf9f8def6b
parent439077746fdb437a8c88f6c88761d27e433cc2e6 (diff)
a_iface_bssap: compiler warning: cast const away from TLV val for l2h
-rw-r--r--src/libmsc/a_iface_bssap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmsc/a_iface_bssap.c b/src/libmsc/a_iface_bssap.c
index 922dca955..8a1e39b0c 100644
--- a/src/libmsc/a_iface_bssap.c
+++ b/src/libmsc/a_iface_bssap.c
@@ -325,7 +325,7 @@ static int bssmap_rx_l3_compl(struct osmo_sccp_user *scu, const struct a_conn_in
/* Parse Layer 3 Information element */
/* FIXME: This is probably to hackish, compiler also complains "assignment discards ‘const’ qualifier..." */
- msg->l3h = TLVP_VAL(&tp, GSM0808_IE_LAYER_3_INFORMATION);
+ msg->l3h = (uint8_t*)TLVP_VAL(&tp, GSM0808_IE_LAYER_3_INFORMATION);
msg->tail = msg->l3h + TLVP_LEN(&tp, GSM0808_IE_LAYER_3_INFORMATION);
/* Create new subscriber context */
@@ -421,7 +421,7 @@ static int bssmap_rx_ciph_compl(const struct osmo_sccp_user *scu, const struct a
}
if (TLVP_PRESENT(&tp, GSM0808_IE_LAYER_3_MESSAGE_CONTENTS)) {
- msg->l3h = TLVP_VAL(&tp, GSM0808_IE_LAYER_3_MESSAGE_CONTENTS);
+ msg->l3h = (uint8_t*)TLVP_VAL(&tp, GSM0808_IE_LAYER_3_MESSAGE_CONTENTS);
msg->tail = msg->l3h + TLVP_LEN(&tp, GSM0808_IE_LAYER_3_MESSAGE_CONTENTS);
} else {
msgb_free(msg);