]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Tlist enlisted allows const pointer argument
authorMaria Matejka <mq@ucw.cz>
Wed, 5 Feb 2025 20:41:32 +0000 (21:41 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 12 Feb 2025 11:40:04 +0000 (12:40 +0100)
lib/tlists.h

index a652ba50339d36a3072ae29b63fb5ccda3360f9d..fc74fe5be93d321e1132f350ce64394b74b519d9 100644 (file)
@@ -78,7 +78,7 @@
 TLIST_STRUCT_DEF(TLIST_PREFIX, TLIST_TYPE);
 #endif
 
-static inline TLIST_LIST_STRUCT * TLIST_NAME(enlisted)(TLIST_TYPE *node)
+static inline TLIST_LIST_STRUCT * TLIST_NAME(enlisted)(const TLIST_TYPE *node)
 {
   return node->TLIST_ITEM.list;
 }