diff options
Diffstat (limited to 'nuttx/mm/mm_shrinkchunk.c')
-rw-r--r-- | nuttx/mm/mm_shrinkchunk.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nuttx/mm/mm_shrinkchunk.c b/nuttx/mm/mm_shrinkchunk.c index e538e43ed..c20aaf0fb 100644 --- a/nuttx/mm/mm_shrinkchunk.c +++ b/nuttx/mm/mm_shrinkchunk.c @@ -1,7 +1,7 @@ /**************************************************************************** * mm/mm_shrinkchunk.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 1013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -63,7 +63,8 @@ * ****************************************************************************/ -void mm_shrinkchunk(FAR struct mm_allocnode_s *node, size_t size) +void mm_shrinkchunk(FAR struct mm_heap_s *heap, + FAR struct mm_allocnode_s *node, size_t size) { FAR struct mm_freenode_s *next; @@ -108,7 +109,7 @@ void mm_shrinkchunk(FAR struct mm_allocnode_s *node, size_t size) /* Add the new node to the freenodelist */ - mm_addfreechunk(newnode); + mm_addfreechunk(heap, newnode); } /* The next chunk is allocated. Try to free the end portion at the end @@ -134,6 +135,6 @@ void mm_shrinkchunk(FAR struct mm_allocnode_s *node, size_t size) /* Add the new node to the freenodelist */ - mm_addfreechunk(newnode); + mm_addfreechunk(heap, newnode); } } |