diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-21 21:55:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-21 21:55:16 +0000 |
commit | efc2cf23a849f7be1d65c4cdd7767f88917c46a7 (patch) | |
tree | fbe3518a364d6b9d811e00f7201e082d50ead7e3 /nuttx/mm/mm_realloc.c | |
parent | 94e5b72f50f3096b83fe50c7b57324a08e318f29 (diff) | |
download | px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.tar.gz px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.tar.bz2 px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.zip |
Progress toward clean SDCC compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@18 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/mm/mm_realloc.c')
-rw-r--r-- | nuttx/mm/mm_realloc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/mm/mm_realloc.c b/nuttx/mm/mm_realloc.c index 01836de60..b288e880a 100644 --- a/nuttx/mm/mm_realloc.c +++ b/nuttx/mm/mm_realloc.c @@ -78,9 +78,9 @@ void *realloc(void *oldmem, size_t size) struct mm_allocnode_s *oldnode; struct mm_freenode_s *prev; struct mm_freenode_s *next; - uint32 oldsize; - uint32 prevsize = 0; - uint32 nextsize = 0; + size_t oldsize; + size_t prevsize = 0; + size_t nextsize = 0; /* If oldmem is NULL, then realloc is equivalent to malloc */ @@ -145,9 +145,9 @@ void *realloc(void *oldmem, size_t size) if (nextsize + prevsize + oldsize >= size) { - uint32 needed = size - oldsize; - uint32 takeprev; - uint32 takenext; + size_t needed = size - oldsize; + size_t takeprev; + size_t takenext; /* Check if we can extend into the previous chunk and if the * previous chunk is smaller than the next chunk. |