summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-23 12:16:30 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-23 12:16:30 +0000
commite7ceef9168a83f3071e4c523366bccb03376f747 (patch)
tree19f97f0b2ebbddad92dcb8c5f3e553a3491c5372
parent2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-e7ceef9168a83f3071e4c523366bccb03376f747.tar.bz2
2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>
* libcsupport/src/malloc.c: Remove lvalue casts.
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libcsupport/src/malloc.c6
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;