forked from Imagelibrary/rtems
2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/src/malloc.c: Remove lvalue casts.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user