diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 7c69ea0e7..72aa5ee15 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2011-01-07 Ralf Corsepius + + * libc/sys/rtems/crt0.c: Adjust free() and calloc() to match their + public decls. + 2011-01-05 Ralf Corsepius * Makefile.am: Move cleaning targ-include to clean-local. diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index b2b1cba50..30b121946 100644 --- a/newlib/libc/sys/rtems/crt0.c +++ b/newlib/libc/sys/rtems/crt0.c @@ -24,8 +24,8 @@ ret func /* RTEMS provides some of its own routines including a Malloc family */ RTEMS_STUB(void *,malloc(size_t s)) { return 0; } RTEMS_STUB(void *,realloc(void* p, size_t s)) { return 0; } -RTEMS_STUB(void, free(void)) { ; } -RTEMS_STUB(_PTR, calloc(struct _reent *r, size_t s1, size_t s2)) {} +RTEMS_STUB(void, free(void* ptr)) { ; } +RTEMS_STUB(_PTR, calloc(size_t s1, size_t s2)) {} #if defined(__GNUC__) /*