aboutsummaryrefslogtreecommitdiff
path: root/src/regions.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-21 23:31:48 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-21 23:31:48 +0300
commit97ffab0a8472981b927d0f4e81bb72f6ecd69b86 (patch)
treec8a36352d599dc9477a6e647878d5e6191b4e98f /src/regions.c
parentab011165cd440b5535d39febd8118e3e26b64b57 (diff)
downloadkmi-97ffab0a8472981b927d0f4e81bb72f6ecd69b86.tar.gz
kmi-97ffab0a8472981b927d0f4e81bb72f6ecd69b86.zip
add malloc test
Diffstat (limited to 'src/regions.c')
-rw-r--r--src/regions.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regions.c b/src/regions.c
index 9849ba8..fcfa0cc 100644
--- a/src/regions.c
+++ b/src/regions.c
@@ -85,8 +85,9 @@ static void free_mem_node(struct mem_region *m)
* @param m Free memory region to insert.
* @return \c m.
*/
-static struct mem_region *__insert_free_region(struct mem_region_root *r,
- struct mem_region *m)
+static __inline struct mem_region *__insert_free_region(
+ struct mem_region_root *r,
+ struct mem_region *m)
{
/* this could be simplified by using my gsptrees in kmx, but at least
* this ensures 'inlining' of the condition checking so I'll let it stay