<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23978">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo_timer_pending: Make arg const<br><br>Change-Id: I250c25c3ac61ac364335f81d8ba50cb32fd6976e<br>---<br>M include/osmocom/core/timer.h<br>M src/timer.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/78/23978/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/timer.h b/include/osmocom/core/timer.h</span><br><span>index 6ffc3b1..61d20e2 100644</span><br><span>--- a/include/osmocom/core/timer.h</span><br><span>+++ b/include/osmocom/core/timer.h</span><br><span>@@ -75,7 +75,7 @@</span><br><span> </span><br><span> void osmo_timer_del(struct osmo_timer_list *timer);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-int osmo_timer_pending(struct osmo_timer_list *timer);</span><br><span style="color: hsl(120, 100%, 40%);">+int osmo_timer_pending(const struct osmo_timer_list *timer);</span><br><span> </span><br><span> int osmo_timer_remaining(const struct osmo_timer_list *timer,</span><br><span>                     const struct timeval *now,</span><br><span>diff --git a/src/timer.c b/src/timer.c</span><br><span>index bcd9f5b..ed5a610 100644</span><br><span>--- a/src/timer.c</span><br><span>+++ b/src/timer.c</span><br><span>@@ -135,7 +135,7 @@</span><br><span>  * This function can be used to determine whether a given timer</span><br><span>  * has alredy expired (returns 0) or is still pending (returns 1)</span><br><span>  */</span><br><span style="color: hsl(0, 100%, 40%);">-int osmo_timer_pending(struct osmo_timer_list *timer)</span><br><span style="color: hsl(120, 100%, 40%);">+int osmo_timer_pending(const struct osmo_timer_list *timer)</span><br><span> {</span><br><span>     return timer->active;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/23978">change 23978</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/+/23978"/><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: I250c25c3ac61ac364335f81d8ba50cb32fd6976e </div>
<div style="display:none"> Gerrit-Change-Number: 23978 </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>