<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/14425">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">core/utils: drop meaningless const from return value of osmo_luhn()<br><br>Change-Id: I085da06f31a0a6862ae2ba041fafc134cc240f7e<br>---<br>M include/osmocom/core/utils.h<br>M src/utils.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/25/14425/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h</span><br><span>index f27359c..f429ba6 100644</span><br><span>--- a/include/osmocom/core/utils.h</span><br><span>+++ b/include/osmocom/core/utils.h</span><br><span>@@ -155,7 +155,7 @@</span><br><span> </span><br><span> uint32_t osmo_isqrt32(uint32_t x);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-const char osmo_luhn(const char* in, int in_len);</span><br><span style="color: hsl(120, 100%, 40%);">+char osmo_luhn(const char* in, int in_len);</span><br><span> </span><br><span> /*! State for OSMO_STRBUF_APPEND() and OSMO_STRBUF_PRINTF(). See there for examples. */</span><br><span> struct osmo_strbuf {</span><br><span>diff --git a/src/utils.c b/src/utils.c</span><br><span>index c38f530..7b7178c 100644</span><br><span>--- a/src/utils.c</span><br><span>+++ b/src/utils.c</span><br><span>@@ -993,7 +993,7 @@</span><br><span>  * \param[in] in_len  Count of digits to use for the input (14 for IMEI).</span><br><span>  * \returns checksum char (e.g. '3'); negative on error</span><br><span>  */</span><br><span style="color: hsl(0, 100%, 40%);">-const char osmo_luhn(const char* in, int in_len)</span><br><span style="color: hsl(120, 100%, 40%);">+char osmo_luhn(const char* in, int in_len)</span><br><span> {</span><br><span>      int i, sum = 0;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/14425">change 14425</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/+/14425"/><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: I085da06f31a0a6862ae2ba041fafc134cc240f7e </div>
<div style="display:none"> Gerrit-Change-Number: 14425 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>