<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22607">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf: Constify some methods<br><br>Change-Id: I2681a98583f4fb26a274c75d0279084239f76a68<br>---<br>M src/tbf.cpp<br>M src/tbf.h<br>2 files 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/07/22607/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/tbf.cpp b/src/tbf.cpp</span><br><span>index 74c790c..35bd81d 100644</span><br><span>--- a/src/tbf.cpp</span><br><span>+++ b/src/tbf.cpp</span><br><span>@@ -544,7 +544,7 @@</span><br><span> }</span><br><span> </span><br><span> int gprs_rlcmac_tbf::check_polling(uint32_t fn, uint8_t ts,</span><br><span style="color: hsl(0, 100%, 40%);">-  uint32_t *poll_fn_, unsigned int *rrbp_)</span><br><span style="color: hsl(120, 100%, 40%);">+      uint32_t *poll_fn_, unsigned int *rrbp_) const</span><br><span> {</span><br><span>  uint32_t new_poll_fn = next_fn(fn, 13);</span><br><span> </span><br><span>@@ -1066,7 +1066,7 @@</span><br><span>  return 0;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-const char *tbf_name(gprs_rlcmac_tbf *tbf)</span><br><span style="color: hsl(120, 100%, 40%);">+const char *tbf_name(const gprs_rlcmac_tbf *tbf)</span><br><span> {</span><br><span>  return tbf ? tbf->name() : "(no TBF)";</span><br><span> }</span><br><span>diff --git a/src/tbf.h b/src/tbf.h</span><br><span>index a2c4747..1d28afb 100644</span><br><span>--- a/src/tbf.h</span><br><span>+++ b/src/tbf.h</span><br><span>@@ -190,7 +190,7 @@</span><br><span> extern "C" {</span><br><span> #endif</span><br><span> struct gprs_rlcmac_tbf;</span><br><span style="color: hsl(0, 100%, 40%);">-const char *tbf_name(struct gprs_rlcmac_tbf *tbf);</span><br><span style="color: hsl(120, 100%, 40%);">+const char *tbf_name(const struct gprs_rlcmac_tbf *tbf);</span><br><span> enum gprs_rlcmac_tbf_state tbf_state(const struct gprs_rlcmac_tbf *tbf);</span><br><span> enum gprs_rlcmac_tbf_direction tbf_direction(const struct gprs_rlcmac_tbf *tbf);</span><br><span> void tbf_set_ms(struct gprs_rlcmac_tbf *tbf, struct GprsMs *ms);</span><br><span>@@ -262,7 +262,7 @@</span><br><span>         int establish_dl_tbf_on_pacch();</span><br><span> </span><br><span>         int check_polling(uint32_t fn, uint8_t ts,</span><br><span style="color: hsl(0, 100%, 40%);">-              uint32_t *poll_fn, unsigned int *rrbp);</span><br><span style="color: hsl(120, 100%, 40%);">+               uint32_t *poll_fn, unsigned int *rrbp) const;</span><br><span>        void set_polling(uint32_t poll_fn, uint8_t ts, enum gprs_rlcmac_tbf_poll_type t);</span><br><span>    void poll_timeout();</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22607">change 22607</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/+/22607"/><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: I2681a98583f4fb26a274c75d0279084239f76a68 </div>
<div style="display:none"> Gerrit-Change-Number: 22607 </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>