missing const in cxListFind

Sun, 20 Nov 2022 16:22:50 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 20 Nov 2022 16:22:50 +0100
changeset 621
646e38efc7bc
parent 620
f220695aded6
child 622
3d93cd78aa20

missing const in cxListFind

src/cx/list.h file | annotate | diff | comparison | revisions
--- a/src/cx/list.h	Sun Nov 20 16:22:16 2022 +0100
+++ b/src/cx/list.h	Sun Nov 20 16:22:50 2022 +0100
@@ -360,7 +360,7 @@
  */
 __attribute__((__nonnull__))
 static inline size_t cxListFind(
-        CxList *list,
+        CxList const *list,
         void const *elem
 ) {
     return list->cl->find(list, elem);

mercurial