From: Nick Porter Date: Tue, 17 Dec 2024 14:00:05 +0000 (+0000) Subject: WS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55e828d0b520609f02fbbe4eafe28ab0371c4ca4;p=thirdparty%2Ffreeradius-server.git WS --- diff --git a/src/lib/util/slab.h b/src/lib/util/slab.h index efa926aa1a3..b40cbdd18e9 100644 --- a/src/lib/util/slab.h +++ b/src/lib/util/slab.h @@ -78,14 +78,14 @@ typedef struct { \ typedef int (*_type ## _slab_reserve_t)(_type *elem, void *uctx); \ \ typedef struct { \ - FR_DLIST_HEAD(_name ## _slab) reserved; \ - FR_DLIST_HEAD(_name ## _slab) avail; \ + FR_DLIST_HEAD(_name ## _slab) reserved; \ + FR_DLIST_HEAD(_name ## _slab) avail; \ fr_event_list_t *el; \ fr_event_timer_t const *ev; \ fr_slab_config_t config; \ unsigned int in_use; \ unsigned int high_water_mark; \ - _type ## _slab_alloc_t alloc; \ + _type ## _slab_alloc_t alloc; \ _type ## _slab_reserve_t reserve; \ void *uctx; \ bool release_reset; \ @@ -95,18 +95,18 @@ typedef struct { \ typedef struct { \ FR_DLIST_ENTRY(_name ## _slab) entry; \ _name ## _slab_list_t *list; \ - TALLOC_CTX *pool; \ + TALLOC_CTX *pool; \ FR_DLIST_HEAD(_name ## _slab_element) reserved; \ FR_DLIST_HEAD(_name ## _slab_element) avail; \ } _name ## _slab_t; \ \ typedef struct { \ - _type elem; \ + _type elem; \ FR_DLIST_ENTRY(_name ## _slab_element) entry; \ - bool in_use; \ + bool in_use; \ _name ## _slab_t *slab; \ _type ## _slab_free_t free; \ - void *uctx; \ + void *uctx; \ } _name ## _slab_element_t; /** Define type specific wrapper functions for slabs and slab elements