<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25820">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf: update(): return negative val on error<br><br>Let's follow usual convention where errors are returned as negative<br>values.<br><br>Change-Id: Ib4f4dc37ae82ba8efdc212ed85af7934e16a8a8d<br>---<br>M src/tbf.cpp<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/20/25820/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 3e190b4..50940c8 100644</span><br><span>--- a/src/tbf.cpp</span><br><span>+++ b/src/tbf.cpp</span><br><span>@@ -323,7 +323,7 @@</span><br><span>  if (rc < 0) {</span><br><span>             LOGPTBF(this, LOGL_ERROR, "No resource after update???\n");</span><br><span>                bts_do_rate_ctr_inc(bts, CTR_TBF_ALLOC_FAIL);</span><br><span style="color: hsl(0, 100%, 40%);">-           return -rc;</span><br><span style="color: hsl(120, 100%, 40%);">+           return rc;</span><br><span>   }</span><br><span> </span><br><span>        if (is_egprs_enabled()) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25820">change 25820</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/+/25820"/><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: Ib4f4dc37ae82ba8efdc212ed85af7934e16a8a8d </div>
<div style="display:none"> Gerrit-Change-Number: 25820 </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>