From b873b91c5fd855d1e67a15fe13228919644f3747 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 19 Apr 2019 02:03:47 +0700 Subject: common/oml.c: constify argument 'trx' of handle_attrs_trx() Change-Id: Id476d492b3c1d0c728fca9eb0fb2254512bdef72 --- include/osmo-bts/phy_link.h | 2 +- src/common/oml.c | 4 ++-- 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(); -- cgit v1.2.3