summaryrefslogtreecommitdiffstats
path: root/testsuites/support
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-11-04 09:55:04 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-11-04 09:55:04 +0000
commitabe56121c78a25c36d068075339849c29b5c2d8d (patch)
treecbc95e83905615826bf90e6b36118e2274268586 /testsuites/support
parent2011-11-04 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-abe56121c78a25c36d068075339849c29b5c2d8d.tar.bz2
2011-11-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
* support/src/test_support.c: Avoid magic numbers.
Diffstat (limited to 'testsuites/support')
-rw-r--r--testsuites/support/src/test_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/support/src/test_support.c b/testsuites/support/src/test_support.c
index aebaabe5ec..757f7b38c6 100644
--- a/testsuites/support/src/test_support.c
+++ b/testsuites/support/src/test_support.c
@@ -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();