From: Alan T. DeKok Date: Thu, 7 Apr 2022 14:02:49 +0000 (-0400) Subject: might as well make this "const" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b22ccccd33b3a2b3b5d49bfecfd0319b572341aa;p=thirdparty%2Ffreeradius-server.git might as well make this "const" --- diff --git a/src/lib/util/tlist.h b/src/lib/util/tlist.h index cf7a013a7f..9c05797aac 100644 --- a/src/lib/util/tlist.h +++ b/src/lib/util/tlist.h @@ -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) \