From 9c7d6a9d7e22d5eec1d1c6c70707d77925f5b43f Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Mon, 6 May 2002 20:46:37 +0000 Subject: [PATCH] * libc/sys/arm/syscalls.c (_rename): Add parameter names. (_sbrk): Add cast of return value. --- newlib/ChangeLog | 5 +++++ newlib/libc/sys/arm/syscalls.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 5b97d5c13..0d214a517 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2002-05-06 Nick Clifton + + * libc/sys/arm/syscalls.c (_rename): Add parameter names. + (_sbrk): Add cast of return value. + 2002-05-06 Jeff Johnston * libc/include/sys/reent.h (_l64a_buf): New reentrant area. diff --git a/newlib/libc/sys/arm/syscalls.c b/newlib/libc/sys/arm/syscalls.c index 3871c4618..6b08c3ec3 100644 --- a/newlib/libc/sys/arm/syscalls.c +++ b/newlib/libc/sys/arm/syscalls.c @@ -497,7 +497,7 @@ _sbrk (int incr) abort (); #else errno = ENOMEM; - return -1; + return (caddr_t) -1; #endif } @@ -622,7 +622,7 @@ _system (const char *s) } int -_rename (const char *oldpath, const char *newpath) +_rename (const char * oldpath, const char * newpath) { errno = ENOSYS; return -1;