]> git.sur5r.net Git - freertos/commitdiff
Change structs to unions to save a few bytes. Normally unions are against the coding...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 30 May 2009 13:25:16 +0000 (13:25 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 30 May 2009 13:25:16 +0000 (13:25 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@751 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/MemMang/heap_1.c
Source/portable/MemMang/heap_2.c

index e9d1fe634ebbaeb6c62730b07fb6900f2cda6af6..3b14e5773d294fb2873fab89d751fa3c072d0ea7 100644 (file)
@@ -98,7 +98,7 @@ Changes between V2.6.1 and V3.0.0
 \r
 /* Allocate the memory for the heap.  The struct is used to force byte\r
 alignment without using any non-portable code. */\r
-static struct xRTOS_HEAP\r
+static union xRTOS_HEAP\r
 {\r
        unsigned portLONG ulDummy;\r
        unsigned portCHAR ucHeap[ configTOTAL_HEAP_SIZE ];\r
index eef5bc071414bf043c1432c4252d71e0e01d6a55..87c114990e0641e63b94c6bb3ef0589cc5db076c 100644 (file)
@@ -86,7 +86,7 @@
 \r
 /* Allocate the memory for the heap.  The struct is used to force byte\r
 alignment without using any non-portable code. */\r
-static struct xRTOS_HEAP\r
+static union xRTOS_HEAP\r
 {\r
        unsigned portLONG ulDummy;\r
        unsigned portCHAR ucHeap[ configTOTAL_HEAP_SIZE ];\r