From a488639e426b530b31992a94480bda8125b5025e Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 29 Apr 2021 16:36:53 +0200 Subject: osmo_timer_pending: Make arg const Change-Id: I250c25c3ac61ac364335f81d8ba50cb32fd6976e --- include/osmocom/core/timer.h | 2 +- src/timer.c | 2 +- 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; } -- cgit v1.2.3