* support/src/test_support.c: Avoid magic numbers.
This commit is contained in:
Sebastian Huber
2011-11-04 09:55:04 +00:00
parent 1e0f63b52c
commit abe56121c7
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2011-11-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
* support/src/test_support.c: Avoid magic numbers.
2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h:

View File

@@ -54,7 +54,7 @@ void Allocate_majority_of_workspace( int smallest )
do {
result = rtems_workspace_allocate(
info.Free.largest-16,
info.Free.largest - HEAP_BLOCK_HEADER_SIZE,
&temp
);
if ((!result) || (!temp))
@@ -72,7 +72,7 @@ void Allocate_majority_of_heap( int smallest )
puts("Allocate_majority_of_heap: ");
size = malloc_free_space();
do {
temp = malloc( size-16 );
temp = malloc( size - HEAP_BLOCK_HEADER_SIZE );
if (!temp)
perror("Unable to allocate from workspace");
size = malloc_free_space();