aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-02-06 15:35:49 +0100
committerfixeria <vyanitskiy@sysmocom.de>2021-02-07 03:39:53 +0000
commit187effa00d4f65a65fb55c2923e3a2c44de3302e (patch)
treed6607748d43a584d25b4703f3195035a507402c5
parentfe45b4eb1f830e561548092ce63e44452249d841 (diff)
oml: make 'struct tlv_parsed' pointer const where possible
-rw-r--r--src/common/oml.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index b7b86e33..b1ae7b47 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -1155,7 +1155,7 @@ static int down_fom(struct gsm_bts *bts, struct msgb *msg)
* manufacturer related messages
*/
-static int oml_ipa_mo_set_attr_nse(void *obj, struct tlv_parsed *tp)
+static int oml_ipa_mo_set_attr_nse(void *obj, const struct tlv_parsed *tp)
{
struct gsm_bts *bts = container_of(obj, struct gsm_bts, gprs.nse);
@@ -1178,7 +1178,7 @@ static int oml_ipa_mo_set_attr_nse(void *obj, struct tlv_parsed *tp)
return 0;
}
-static int oml_ipa_mo_set_attr_cell(void *obj, struct tlv_parsed *tp)
+static int oml_ipa_mo_set_attr_cell(void *obj, const struct tlv_parsed *tp)
{
struct gsm_bts *bts = container_of(obj, struct gsm_bts, gprs.cell);
struct gprs_rlc_cfg *rlcc = &bts->gprs.cell.rlc_cfg;
@@ -1249,7 +1249,7 @@ static int oml_ipa_mo_set_attr_cell(void *obj, struct tlv_parsed *tp)
}
static int oml_ipa_mo_set_attr_nsvc(struct gsm_bts_gprs_nsvc *nsvc,
- struct tlv_parsed *tp)
+ const struct tlv_parsed *tp)
{
if (TLVP_PRES_LEN(tp, NM_ATT_IPACC_NSVCI, 2))
nsvc->nsvci = ntohs(tlvp_val16_unal(tp, NM_ATT_IPACC_NSVCI));
@@ -1319,7 +1319,7 @@ static int oml_ipa_mo_set_attr_nsvc(struct gsm_bts_gprs_nsvc *nsvc,
}
static int oml_ipa_mo_set_attr(struct gsm_bts *bts, const struct gsm_abis_mo *mo,
- void *obj, struct tlv_parsed *tp)
+ void *obj, const struct tlv_parsed *tp)
{
int rc;
@@ -1380,7 +1380,7 @@ static int oml_ipa_set_attr(struct gsm_bts *bts, struct msgb *msg)
}
static int rx_oml_ipa_rsl_connect(struct gsm_bts_trx *trx, struct msgb *msg,
- struct tlv_parsed *tp)
+ const struct tlv_parsed *tp)
{
struct e1inp_sign_link *oml_link = trx->bts->oml_link;
uint16_t port = IPA_TCP_PORT_RSL;