X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fstruct%2Fheap.c;h=dc8ceaab8e03df4cc2916ecaba936027277153d8;hb=c9d1a7e9cc28f4d94fff284a4ca09a23f8eea855;hp=b4380a4da499a53e4c6cc581e755667df8867279;hpb=e5174304054e26cd8f3cd1f9980871c20c07fc46;p=bertos.git diff --git a/bertos/struct/heap.c b/bertos/struct/heap.c index b4380a4d..dc8ceaab 100644 --- a/bertos/struct/heap.c +++ b/bertos/struct/heap.c @@ -32,7 +32,7 @@ * * \brief Heap subsystem (public interface). * - * \version $Id: heap.c 1532 2008-08-04 07:21:26Z bernie $ + * \version $Id$ * \author Bernie Innocenti */ @@ -73,7 +73,7 @@ void *heap_allocmem(struct Heap* h, size_t size) MemChunk *chunk, *prev; /* Round size up to the allocation granularity */ - size = ROUND2(size, sizeof(MemChunk)); + size = ROUND_UP2(size, sizeof(MemChunk)); /* Handle allocations of 0 bytes */ if (!size) @@ -123,7 +123,7 @@ void heap_freemem(struct Heap* h, void *mem, size_t size) #endif /* Round size up to the allocation granularity */ - size = ROUND2(size, sizeof(MemChunk)); + size = ROUND_UP2(size, sizeof(MemChunk)); /* Handle allocations of 0 bytes */ if (!size)