From e7ceef9168a83f3071e4c523366bccb03376f747 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 23 Mar 2004 12:16:30 +0000 Subject: 2004-03-23 Ralf Corsepius * libcsupport/src/malloc.c: Remove lvalue casts. --- cpukit/ChangeLog | 4 ++++ cpukit/libcsupport/src/malloc.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 59741835bc..14a39ecc40 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2004-03-23 Ralf Corsepius + + * libcsupport/src/malloc.c: Remove lvalue casts. + 2004-03-23 Ralf Corsepius * libcsupport/include/chain.h, libcsupport/include/clockdrv.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; -- cgit v1.2.3