H8/300: Silence -Wold-style-definition warnings
Commit Message
2025-03-02 Jan Dubiec <jdx@o2.pl>
newlib/ChangeLog:
* libc/sys/h8300hms/sbrk.c: Replace the K&R definition with the
standard one.
* libc/sys/h8300hms/syscalls.c (_isatty): Ditto.
(_unlink): Ditto.
newlib/libc/sys/h8300hms/sbrk.c | 3 +--
newlib/libc/sys/h8300hms/syscalls.c | 6 ++----
2 files changed, 3 insertions(+), 6 deletions(-)
Comments
Hi Jan,
On Mar 2 16:42, Jan Dubiec wrote:
>
> 2025-03-02 Jan Dubiec <jdx@o2.pl>
>
> newlib/ChangeLog:
>
> * libc/sys/h8300hms/sbrk.c: Replace the K&R definition with the
> standard one.
> * libc/sys/h8300hms/syscalls.c (_isatty): Ditto.
> (_unlink): Ditto.
all three patches pushed.
Thanks,
Corinna
@@ -7,8 +7,7 @@ register char *stack_ptr asm ("sp");
extern int _write (int, char *, int);
caddr_t
- _sbrk(incr)
- int incr;
+ _sbrk(int incr)
{
extern char end; /* Defined by the linker */
static char *heap_end;
@@ -3,15 +3,13 @@
#include <_ansi.h>
#include <errno.h>
-int _isatty(file)
- int file;
+int _isatty(int file)
{
return 1;
}
int
-_unlink (path)
- const char *path;
+_unlink (const char *path)
{
errno = EIO;
return -1;