aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-04-19 02:03:47 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-04-19 20:20:47 +0700
commitb873b91c5fd855d1e67a15fe13228919644f3747 (patch)
treebcdf1f6422108e123978b9c36cbbf24880afded8
parentac3924e093259aec750a828c6bcbf3e76c1a03ca (diff)
common/oml.c: constify argument 'trx' of handle_attrs_trx()
-rw-r--r--include/osmo-bts/phy_link.h2
-rw-r--r--src/common/oml.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/osmo-bts/phy_link.h b/include/osmo-bts/phy_link.h
index 2472c051..812f1865 100644
--- a/include/osmo-bts/phy_link.h
+++ b/include/osmo-bts/phy_link.h
@@ -166,7 +166,7 @@ const char *phy_instance_name(struct phy_instance *pinst);
void phy_user_statechg_notif(struct phy_instance *pinst, enum phy_link_state link_state);
-static inline struct phy_instance *trx_phy_instance(struct gsm_bts_trx *trx)
+static inline struct phy_instance *trx_phy_instance(const struct gsm_bts_trx *trx)
{
OSMO_ASSERT(trx);
return trx->role_bts.l1h;
diff --git a/src/common/oml.c b/src/common/oml.c
index 80d424f8..03fdc564 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -155,7 +155,7 @@ static inline void add_bts_feat(struct msgb *msg, const struct gsm_bts *bts)
msgb_tl16v_put(msg, NM_ATT_MANUF_ID, _NUM_BTS_FEAT/8 + 1, bts->_features_data);
}
-static inline void add_trx_attr(struct msgb *msg, struct gsm_bts_trx *trx)
+static inline void add_trx_attr(struct msgb *msg, const struct gsm_bts_trx *trx)
{
const struct phy_instance *pinst = trx_phy_instance(trx);
@@ -191,7 +191,7 @@ static inline int cleanup_attr_msg(uint8_t *out, int out_offset, struct msgb *ms
return len + out_offset + 1;
}
-static inline int handle_attrs_trx(uint8_t *out, struct gsm_bts_trx *trx, const uint8_t *attr, uint16_t attr_len)
+static inline int handle_attrs_trx(uint8_t *out, const struct gsm_bts_trx *trx, const uint8_t *attr, uint16_t attr_len)
{
uint16_t i, attr_out_index = 1; /* byte 0 is reserved for unsupported attributes counter */
struct msgb *attr_buf = oml_msgb_alloc();