]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
minor typos and fixes
authorAlan T. DeKok <aland@freeradius.org>
Mon, 4 Apr 2022 19:07:28 +0000 (15:07 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 4 Apr 2022 19:07:28 +0000 (15:07 -0400)
src/lib/util/tlist.h

index 10db34e43a910e9ed6c63a6b994b9fc9b6c04c1d..207205d900e81151bcc5f81daa1810b9f298cb68 100644 (file)
@@ -1031,19 +1031,19 @@ DIAG_OFF(unused-function) \
                {               fr_tlist_sort(&list->head, cmp); } \
 \
        static inline FR_TLIST_HEAD(_name) *_name ## _parent(_element_type *ptr) \
-               {               return (FR_TLIST_HEAD(_name) *) (ptr->_element_entry->list_head); } \
+               {               return (FR_TLIST_HEAD(_name) *) (ptr->_element_entry.entry.list_head); } \
 \
        static inline FR_TLIST_HEAD(_name) *_name ## _children(_element_type *ptr) \
-               {               return (FR_TLIST_HEAD(_name) *) (ptr->_element_entry->children); } \
+               {               return (FR_TLIST_HEAD(_name) *) (ptr->_element_entry.entry.children); } \
 \
        static inline void _name ## _init_children(_element_type *ptr, FR_TLIST_HEAD(_name) *children) \
-               {               fr_tlist_init_children(ptr->_element_entry, &children->head); } \
+               {               fr_tlist_init_children(&ptr->_element_entry.entry, &children->head); } \
 \
        static inline void _name ## _add_children(_element_type *ptr, FR_TLIST_HEAD(_name) *children) \
-               {               return fr_tlist_add_children(ptr->_element_entry, &children->head); } \
+               {               fr_tlist_add_children(&ptr->_element_entry.entry, &children->head); } \
 \
        static inline FR_TLIST_HEAD(_name) * _name ## _remove_children(_element_type *ptr) \
-               {               return FR_TLIST_HEAD(_name) *fr_tlist_remove_children(&ptr->_element_entry) }
+               {               return (FR_TLIST_HEAD(_name) *) fr_tlist_remove_children(&ptr->_element_entry.entry); }
 DIAG_ON(unused-function)
 
 static inline void *fr_tlist_parent(fr_tlist_head_t *list_head, void const *ptr)