2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>

* libcsupport/src/malloc.c: Remove lvalue casts.
This commit is contained in:
Ralf Corsepius
2004-03-23 12:16:30 +00:00
parent ee4f57d9a6
commit e7ceef9168
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
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> 2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/include/chain.h, libcsupport/include/clockdrv.h, * libcsupport/include/chain.h, libcsupport/include/clockdrv.h,

View File

@@ -212,8 +212,8 @@ void *malloc(
the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount); the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);
if (((uint32_t )starting_address = (void *)sbrk(the_size)) if ((starting_address = (void *)sbrk(the_size))
== (uint32_t ) -1) == (void*) -1)
return (void *) 0; return (void *) 0;
status = rtems_region_extend( status = rtems_region_extend(
@@ -289,7 +289,7 @@ void *realloc(
size_t size size_t size
) )
{ {
uint32_t old_size; size_t old_size;
rtems_status_code status; rtems_status_code status;
char *new_area; char *new_area;