From 70ecb4ef260109e04d636e827f6f5d0c77f918f1 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 6 Jan 2023 01:26:16 +0800 Subject: [PATCH] mm/heap: Changee mmchunk_handler_t to mm_node_handler_t to unify the term usage(chunk v.s. node and mm v.s. mm_) Signed-off-by: Xiang Xiao --- mm/mm_heap/mm.h | 4 ++-- mm/mm_heap/mm_foreach.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/mm_heap/mm.h b/mm/mm_heap/mm.h index 54644038df..e59c44ffb1 100644 --- a/mm/mm_heap/mm.h +++ b/mm/mm_heap/mm.h @@ -231,7 +231,7 @@ struct mm_heap_s /* This describes the callback for mm_foreach */ -typedef CODE void (*mmchunk_handler_t)(FAR struct mm_allocnode_s *node, +typedef CODE void (*mm_node_handler_t)(FAR struct mm_allocnode_s *node, FAR void *arg); /**************************************************************************** @@ -259,7 +259,7 @@ int mm_size2ndx(size_t size); /* Functions contained in mm_foreach.c **************************************/ -void mm_foreach(FAR struct mm_heap_s *heap, mmchunk_handler_t handler, +void mm_foreach(FAR struct mm_heap_s *heap, mm_node_handler_t handler, FAR void *arg); #endif /* __MM_MM_HEAP_MM_H */ diff --git a/mm/mm_heap/mm_foreach.c b/mm/mm_heap/mm_foreach.c index b1c8982da6..827fb776c9 100644 --- a/mm/mm_heap/mm_foreach.c +++ b/mm/mm_heap/mm_foreach.c @@ -43,7 +43,7 @@ * ****************************************************************************/ -void mm_foreach(FAR struct mm_heap_s *heap, mmchunk_handler_t handler, +void mm_foreach(FAR struct mm_heap_s *heap, mm_node_handler_t handler, FAR void *arg) { FAR struct mm_allocnode_s *node;