osmo_timer_pending: Make arg const

Change-Id: I250c25c3ac61ac364335f81d8ba50cb32fd6976e
diff --git a/include/osmocom/core/timer.h b/include/osmocom/core/timer.h
index 6ffc3b1..61d20e2 100644
--- a/include/osmocom/core/timer.h
+++ b/include/osmocom/core/timer.h
@@ -75,7 +75,7 @@
 
 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 bcd9f5b..ed5a610 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -135,7 +135,7 @@
  * 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;
 }