This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Max gerrit-no-reply at lists.osmocom.orgMax has uploaded this change for review. ( 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(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/14/12214/1 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: newchange Gerrit-Change-Id: I414e67a3de733fab407161b3264d3b89070ba537 Gerrit-Change-Number: 12214 Gerrit-PatchSet: 1 Gerrit-Owner: Max <msuraev at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181210/3a57ac31/attachment.htm>