<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13699">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">common/oml.c: constify argument 'trx' of handle_attrs_trx()<br><br>Change-Id: Id476d492b3c1d0c728fca9eb0fb2254512bdef72<br>---<br>M include/osmo-bts/phy_link.h<br>M src/common/oml.c<br>2 files changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/99/13699/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmo-bts/phy_link.h b/include/osmo-bts/phy_link.h</span><br><span>index 2472c05..812f186 100644</span><br><span>--- a/include/osmo-bts/phy_link.h</span><br><span>+++ b/include/osmo-bts/phy_link.h</span><br><span>@@ -166,7 +166,7 @@</span><br><span> </span><br><span> void phy_user_statechg_notif(struct phy_instance *pinst, enum phy_link_state link_state);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-static inline struct phy_instance *trx_phy_instance(struct gsm_bts_trx *trx)</span><br><span style="color: hsl(120, 100%, 40%);">+static inline struct phy_instance *trx_phy_instance(const struct gsm_bts_trx *trx)</span><br><span> {</span><br><span>         OSMO_ASSERT(trx);</span><br><span>    return trx->role_bts.l1h;</span><br><span>diff --git a/src/common/oml.c b/src/common/oml.c</span><br><span>index df85fbe..83b8f29 100644</span><br><span>--- a/src/common/oml.c</span><br><span>+++ b/src/common/oml.c</span><br><span>@@ -155,7 +155,7 @@</span><br><span>      msgb_tl16v_put(msg, NM_ATT_MANUF_ID, _NUM_BTS_FEAT/8 + 1, bts->_features_data);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-static inline void add_trx_attr(struct msgb *msg, struct gsm_bts_trx *trx)</span><br><span style="color: hsl(120, 100%, 40%);">+static inline void add_trx_attr(struct msgb *msg, const struct gsm_bts_trx *trx)</span><br><span> {</span><br><span>         const struct phy_instance *pinst = trx_phy_instance(trx);</span><br><span> </span><br><span>@@ -191,7 +191,7 @@</span><br><span>  return len + out_offset + 1;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-static inline int handle_attrs_trx(uint8_t *out, struct gsm_bts_trx *trx, const uint8_t *attr, uint16_t attr_len)</span><br><span style="color: hsl(120, 100%, 40%);">+static inline int handle_attrs_trx(uint8_t *out, const struct gsm_bts_trx *trx, const uint8_t *attr, uint16_t attr_len)</span><br><span> {</span><br><span>         uint16_t i, attr_out_index = 1; /* byte 0 is reserved for unsupported attributes counter */</span><br><span>  struct msgb *attr_buf = oml_msgb_alloc();</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13699">change 13699</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13699"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id476d492b3c1d0c728fca9eb0fb2254512bdef72 </div>
<div style="display:none"> Gerrit-Change-Number: 13699 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>