summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/osmocom/core/linuxlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/linuxlist.h b/include/osmocom/core/linuxlist.h
index 8d0533f6..77913104 100644
--- a/include/osmocom/core/linuxlist.h
+++ b/include/osmocom/core/linuxlist.h
@@ -387,7 +387,7 @@ static inline void llist_splice_init(struct llist_head *llist,
* This function is not efficient, mostly useful for small lists and non time
* critical cases like unit tests.
*/
-static inline unsigned int llist_count(struct llist_head *head)
+static inline unsigned int llist_count(const struct llist_head *head)
{
struct llist_head *entry;
unsigned int i = 0;