change log for rtems (2011-11-04)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri Nov 4 10:10:26 UTC 2011


 *sh*:
2011-11-04	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* support/src/test_support.c: Avoid magic numbers.

M  1.193  testsuites/ChangeLog
M    1.9  testsuites/support/src/test_support.c

diff -u rtems/testsuites/ChangeLog:1.192 rtems/testsuites/ChangeLog:1.193
--- rtems/testsuites/ChangeLog:1.192	Tue Oct 25 11:30:35 2011
+++ rtems/testsuites/ChangeLog	Fri Nov  4 04:55:04 2011
@@ -1,3 +1,7 @@
+2011-11-04	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* support/src/test_support.c: Avoid magic numbers.
+
 2011-10-25	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* support/include/tmacros.h: 

diff -u rtems/testsuites/support/src/test_support.c:1.8 rtems/testsuites/support/src/test_support.c:1.9
--- rtems/testsuites/support/src/test_support.c:1.8	Tue Feb 22 05:11:44 2011
+++ rtems/testsuites/support/src/test_support.c	Fri Nov  4 04:55:04 2011
@@ -54,7 +54,7 @@
 
   do {
     result = rtems_workspace_allocate(
-      info.Free.largest-16,
+      info.Free.largest - HEAP_BLOCK_HEADER_SIZE,
       &temp
     );
     if ((!result) || (!temp))
@@ -72,7 +72,7 @@
   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();



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111104/0e6c9281/attachment.html>


More information about the vc mailing list