aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-04-29 16:36:53 +0200
committerlaforge <laforge@osmocom.org>2021-04-29 20:14:51 +0000
commita488639e426b530b31992a94480bda8125b5025e (patch)
tree796575d4932f9e031867166f2090d96e95ef3bcc
parent5782fec9fffed4a207a1fcc1e745fb4f9d89ba47 (diff)
osmo_timer_pending: Make arg const
-rw-r--r--include/osmocom/core/timer.h2
-rw-r--r--src/timer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/core/timer.h b/include/osmocom/core/timer.h
index 6ffc3b17..61d20e2d 100644
--- a/include/osmocom/core/timer.h
+++ b/include/osmocom/core/timer.h
@@ -75,7 +75,7 @@ void osmo_timer_schedule(struct osmo_timer_list *timer, int seconds, int microse
void osmo_timer_del(struct osmo_timer_list *timer);
-int osmo_timer_pending(struct osmo_timer_list *timer);
+int osmo_timer_pending(const struct osmo_timer_list *timer);
int osmo_timer_remaining(const struct osmo_timer_list *timer,
const struct timeval *now,
diff --git a/src/timer.c b/src/timer.c
index bcd9f5ba..ed5a6103 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -135,7 +135,7 @@ void osmo_timer_del(struct osmo_timer_list *timer)
* This function can be used to determine whether a given timer
* has alredy expired (returns 0) or is still pending (returns 1)
*/
-int osmo_timer_pending(struct osmo_timer_list *timer)
+int osmo_timer_pending(const struct osmo_timer_list *timer)
{
return timer->active;
}