From 7281fe8fdbb64a83bc0f569ef01db33a1f26ac98 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Thu, 20 Mar 2025 14:11:53 -0500 Subject: core: alloc: make the mem_block type opaque Make the mem_block struct into a fully opaque type. This brings the allocation manager in line with project coding style. Signed-off-by: Danny Holman --- include/rune/core/alloc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/rune/core/alloc.h b/include/rune/core/alloc.h index 65121ce..b2ccca0 100644 --- a/include/rune/core/alloc.h +++ b/include/rune/core/alloc.h @@ -28,12 +28,12 @@ /** * Memory block used for memory accounting */ -struct mem_block { +typedef struct mem_block { void *ptr; size_t sz; int free; - struct list_head list; -}; + list_head_t list; +} mem_block_t; /** * \brief Custom malloc implementation -- cgit v1.2.3