diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-27 21:17:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-27 21:17:21 +0000 |
commit | 148cde5e982950ad5836fa96baa466de842e1c14 (patch) | |
tree | bf737b367b91c5da81345eb21016b07400d7a72f /nuttx/mm/mm_malloc.c | |
parent | f6b81a790c28d7d36d9de33810df5270c1ebbfd7 (diff) | |
download | px4-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_malloc.c')
-rw-r--r-- | nuttx/mm/mm_malloc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/mm/mm_malloc.c b/nuttx/mm/mm_malloc.c index 80a89222b..05c0f73c8 100644 --- a/nuttx/mm/mm_malloc.c +++ b/nuttx/mm/mm_malloc.c @@ -85,9 +85,9 @@ * ************************************************************/ -void *malloc(size_t size) +FAR void *malloc(size_t size) { - struct mm_freenode_s *node; + FAR struct mm_freenode_s *node; void *ret = NULL; int ndx; @@ -142,8 +142,8 @@ void *malloc(size_t size) if (node) { - struct mm_freenode_s *remainder; - struct mm_freenode_s *next; + FAR struct mm_freenode_s *remainder; + FAR struct mm_freenode_s *next; size_t remaining; /* Remove the node. There must be a predecessor, but there may @@ -169,11 +169,11 @@ void *malloc(size_t size) { /* Get a pointer to the next node in physical memory */ - next = (struct mm_freenode_s*)(((char*)node) + node->size); + next = (FAR struct mm_freenode_s*)(((char*)node) + node->size); /* Create the remainder node */ - remainder = (struct mm_freenode_s*)(((char*)node) + size); + remainder = (FAR struct mm_freenode_s*)(((char*)node) + size); remainder->size = remaining; remainder->preceding = size; |