<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22996">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">find_multi_slots: Mark mslot_class properties const<br><br>This way it's clear for reader that those variables are never touched<br>during the function.<br><br>Change-Id: Ief038c75bc02d0e987135f29599014eab88447dd<br>---<br>M src/gprs_rlcmac_ts_alloc.cpp<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/96/22996/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp</span><br><span>index 1645b87..cb054cd 100644</span><br><span>--- a/src/gprs_rlcmac_ts_alloc.cpp</span><br><span>+++ b/src/gprs_rlcmac_ts_alloc.cpp</span><br><span>@@ -516,10 +516,10 @@</span><br><span>  */</span><br><span> int find_multi_slots(struct gprs_rlcmac_trx *trx, uint8_t mslot_class, uint8_t *ul_slots, uint8_t *dl_slots)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">- uint8_t Rx = mslot_class_get_rx(mslot_class),   /* Max number of Rx slots */</span><br><span style="color: hsl(0, 100%, 40%);">-            Tx = mslot_class_get_tx(mslot_class),   /* Max number of Tx slots */</span><br><span style="color: hsl(0, 100%, 40%);">-            Sum = mslot_class_get_sum(mslot_class), /* Max number of Tx + Rx slots */</span><br><span style="color: hsl(0, 100%, 40%);">-               max_slots, num_rx, num_tx, mask_sel, pdch_slots, ul_ts, dl_ts;</span><br><span style="color: hsl(120, 100%, 40%);">+        const uint8_t Rx = mslot_class_get_rx(mslot_class),   /* Max number of Rx slots */</span><br><span style="color: hsl(120, 100%, 40%);">+                  Tx = mslot_class_get_tx(mslot_class),   /* Max number of Tx slots */</span><br><span style="color: hsl(120, 100%, 40%);">+                  Sum = mslot_class_get_sum(mslot_class); /* Max number of Tx + Rx slots */</span><br><span style="color: hsl(120, 100%, 40%);">+       uint8_t max_slots, num_rx, num_tx, mask_sel, pdch_slots, ul_ts, dl_ts;</span><br><span>       int16_t rx_window, tx_window;</span><br><span>        char slot_info[9] = {0};</span><br><span>     int max_capacity = -1;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22996">change 22996</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/osmo-pcu/+/22996"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ief038c75bc02d0e987135f29599014eab88447dd </div>
<div style="display:none"> Gerrit-Change-Number: 22996 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>