summaryrefslogtreecommitdiff
path: root/nuttx/mm/mm_shrinkchunk.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-27 21:17:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-27 21:17:21 +0000
commit148cde5e982950ad5836fa96baa466de842e1c14 (patch)
treebf737b367b91c5da81345eb21016b07400d7a72f /nuttx/mm/mm_shrinkchunk.c
parentf6b81a790c28d7d36d9de33810df5270c1ebbfd7 (diff)
downloadpx4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.tar.gz
px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.tar.bz2
px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.zip
Finally, a clean SDCC compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@20 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/mm/mm_shrinkchunk.c')
-rw-r--r--nuttx/mm/mm_shrinkchunk.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/mm/mm_shrinkchunk.c b/nuttx/mm/mm_shrinkchunk.c
index 8869f045c..4612c426d 100644
--- a/nuttx/mm/mm_shrinkchunk.c
+++ b/nuttx/mm/mm_shrinkchunk.c
@@ -64,24 +64,24 @@
*
************************************************************/
-void mm_shrinkchunk(struct mm_allocnode_s *node, size_t size)
+void mm_shrinkchunk(FAR struct mm_allocnode_s *node, size_t size)
{
- struct mm_freenode_s *next;
+ FAR struct mm_freenode_s *next;
/* Get a reference to the next node */
- next = (struct mm_freenode_s*)((char*)node + node->size);
+ next = (FAR struct mm_freenode_s*)((char*)node + node->size);
/* Check if it is free */
if ((next->preceding & MM_ALLOC_BIT) == 0)
{
- struct mm_allocnode_s *andbeyond;
- struct mm_freenode_s *newnode;
+ FAR struct mm_allocnode_s *andbeyond;
+ FAR struct mm_freenode_s *newnode;
/* Get the chunk next the next node (which could be the tail chunk) */
- andbeyond = (struct mm_allocnode_s*)((char*)next + next->size);
+ andbeyond = (FAR struct mm_allocnode_s*)((char*)next + next->size);
/* Remove the next node. There must be a predecessor, but there may
* not be a successor node.
@@ -98,7 +98,7 @@ void mm_shrinkchunk(struct mm_allocnode_s *node, size_t size)
* and the tailing memory from the aligned chunk.
*/
- newnode = (struct mm_freenode_s*)((char*)node + size);
+ newnode = (FAR struct mm_freenode_s*)((char*)node + size);
/* Set up the size of the new node */
@@ -118,13 +118,13 @@ void mm_shrinkchunk(struct mm_allocnode_s *node, size_t size)
else if (node->size >= size + SIZEOF_MM_FREENODE)
{
- struct mm_freenode_s *newnode;
+ FAR struct mm_freenode_s *newnode;
/* Create a new chunk that will hold both the next chunk
* and the tailing memory from the aligned chunk.
*/
- newnode = (struct mm_freenode_s*)((char*)node + size);
+ newnode = (FAR struct mm_freenode_s*)((char*)node + size);
/* Set up the size of the new node */