]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
might as well make this "const"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 7 Apr 2022 14:02:49 +0000 (10:02 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 7 Apr 2022 15:23:38 +0000 (11:23 -0400)
src/lib/util/tlist.h

index cf7a013a7f3b00c9a4f00a713b5efe9189689346..9c05797aac11b909f4219ac543b02a3daa71567b 100644 (file)
@@ -893,7 +893,7 @@ DIAG_OFF(unused-function) \
        static inline   void _name ## _sort(FR_TLIST_HEAD(_name) *list, fr_cmp_t cmp) \
                {               fr_tlist_sort(&list->head, cmp); } \
 \
-       static inline FR_TLIST_HEAD(_name) *_name ## _parent(_element_type *ptr) \
+       static inline FR_TLIST_HEAD(_name) *_name ## _parent(const _element_type *ptr) \
                {               return (FR_TLIST_HEAD(_name) *) (ptr->_element_entry.entry.list_head); } \
 \
        static inline FR_TLIST_HEAD(_name) *_name ## _children(_element_type *ptr) \