summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-20 09:58:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-20 19:18:23 +0200
commit6c66bbbadf4bbcb0efc5bda992f638feadfb69e5 (patch)
tree73e3aa47325fa459aeb943958af5ca067a561b69 /cpukit/include
parentlibcsupport: Move rtems_calloc() (diff)
downloadrtems-6c66bbbadf4bbcb0efc5bda992f638feadfb69e5.tar.bz2
malloc: Hide RTEMS_Malloc_Sbrk_amount
Move RTEMS_Malloc_Sbrk_amount to the only implementation file which uses it and make it private to hide implementation-details from an API header.
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/malloc.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/cpukit/include/rtems/malloc.h b/cpukit/include/rtems/malloc.h
index ec6473a703..eba538e223 100644
--- a/cpukit/include/rtems/malloc.h
+++ b/cpukit/include/rtems/malloc.h
@@ -48,12 +48,7 @@ Heap_Control *RTEMS_Malloc_Initialize(
Heap_Initialization_or_extend_handler extend
);
-extern ptrdiff_t RTEMS_Malloc_Sbrk_amount;
-
-static inline void rtems_heap_set_sbrk_amount( ptrdiff_t sbrk_amount )
-{
- RTEMS_Malloc_Sbrk_amount = sbrk_amount;
-}
+void rtems_heap_set_sbrk_amount( ptrdiff_t sbrk_amount );
typedef void *(*rtems_heap_extend_handler)(
Heap_Control *heap,