<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15028">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">codec/ecu_fr: Mark input TCH frame as 'const' as we only read it<br><br>Change-Id: I64c6d3dc08ff87b673ba6225f98546e86f91bcfd<br>---<br>M include/osmocom/codec/ecu.h<br>M src/codec/ecu_fr.c<br>2 files changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/28/15028/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/codec/ecu.h b/include/osmocom/codec/ecu.h</span><br><span>index f7a29a0..ec0a2f8 100644</span><br><span>--- a/include/osmocom/codec/ecu.h</span><br><span>+++ b/include/osmocom/codec/ecu.h</span><br><span>@@ -11,5 +11,5 @@</span><br><span>   uint8_t frame_backup[GSM_FR_BYTES];</span><br><span> };</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, uint8_t *frame);</span><br><span style="color: hsl(120, 100%, 40%);">+void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, const uint8_t *frame);</span><br><span> int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame);</span><br><span>diff --git a/src/codec/ecu_fr.c b/src/codec/ecu_fr.c</span><br><span>index 20a0f89..ef42ea9 100644</span><br><span>--- a/src/codec/ecu_fr.c</span><br><span>+++ b/src/codec/ecu_fr.c</span><br><span>@@ -130,7 +130,7 @@</span><br><span>  * \param[in] state The state object for the ECU</span><br><span>  * \param[out] frame The valid frame (GSM_FR_BYTES bytes in RTP payload format)</span><br><span>  */</span><br><span style="color: hsl(0, 100%, 40%);">-void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, uint8_t *frame)</span><br><span style="color: hsl(120, 100%, 40%);">+void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, const uint8_t *frame)</span><br><span> {</span><br><span>       state->subsequent_lost_frame = false;</span><br><span>     memcpy(state->frame_backup, frame, GSM_FR_BYTES);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15028">change 15028</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/c/libosmocore/+/15028"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I64c6d3dc08ff87b673ba6225f98546e86f91bcfd </div>
<div style="display:none"> Gerrit-Change-Number: 15028 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>