diff options
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/malloc.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 59741835bc..14a39ecc40 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,9 @@ 2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org> + * libcsupport/src/malloc.c: Remove lvalue casts. + +2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org> + * libcsupport/include/chain.h, libcsupport/include/clockdrv.h, libcsupport/include/ringbuf.h, libcsupport/include/spurious.h, libcsupport/include/timerdrv.h, libcsupport/include/vmeintr.h, diff --git a/cpukit/libcsupport/src/malloc.c b/cpukit/libcsupport/src/malloc.c index 56b2f8cfc5..2d4f965c44 100644 --- a/cpukit/libcsupport/src/malloc.c +++ b/cpukit/libcsupport/src/malloc.c @@ -212,8 +212,8 @@ void *malloc( the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount); - if (((uint32_t )starting_address = (void *)sbrk(the_size)) - == (uint32_t ) -1) + if ((starting_address = (void *)sbrk(the_size)) + == (void*) -1) return (void *) 0; status = rtems_region_extend( @@ -289,7 +289,7 @@ void *realloc( size_t size ) { - uint32_t old_size; + size_t old_size; rtems_status_code status; char *new_area; |