Max has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/12214 )

Change subject: Constify llist_count() parameter
......................................................................

Constify llist_count() parameter

Counting list entires should not alter the list content: let's make this
obvious from type signature.

Change-Id: I414e67a3de733fab407161b3264d3b89070ba537
---
M include/osmocom/core/linuxlist.h
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/core/linuxlist.h b/include/osmocom/core/linuxlist.h
index 8d0533f..7791310 100644
--- a/include/osmocom/core/linuxlist.h
+++ b/include/osmocom/core/linuxlist.h
@@ -387,7 +387,7 @@
  * 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;

--
To view, visit https://gerrit.osmocom.org/12214
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I414e67a3de733fab407161b3264d3b89070ba537
Gerrit-Change-Number: 12214
Gerrit-PatchSet: 2
Gerrit-Owner: Max <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <[email protected]>
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>

Reply via email to