diff options
author | Jan Dubiec <jdx@o2.pl> | 2025-03-02 16:42:36 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2025-03-03 11:45:36 +0100 |
commit | 627785b540bd9e119ad76cdac2dbe39221fdd2f2 (patch) | |
tree | ba776e53eeeb85873d5ac6e5a1f2f535f0d2c421 | |
parent | 3312f2d21f136c371ba55e019b027727e64c1c62 (diff) | |
download | newlib-627785b540bd9e119ad76cdac2dbe39221fdd2f2.zip newlib-627785b540bd9e119ad76cdac2dbe39221fdd2f2.tar.gz newlib-627785b540bd9e119ad76cdac2dbe39221fdd2f2.tar.bz2 |
H8/300: Silence -Wold-style-definition warnings
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(-)
-rw-r--r-- | newlib/libc/sys/h8300hms/sbrk.c | 3 | ||||
-rw-r--r-- | newlib/libc/sys/h8300hms/syscalls.c | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/newlib/libc/sys/h8300hms/sbrk.c b/newlib/libc/sys/h8300hms/sbrk.c index a99ae29..30feba3 100644 --- a/newlib/libc/sys/h8300hms/sbrk.c +++ b/newlib/libc/sys/h8300hms/sbrk.c @@ -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; diff --git a/newlib/libc/sys/h8300hms/syscalls.c b/newlib/libc/sys/h8300hms/syscalls.c index b9ec17a..6a97baa 100644 --- a/newlib/libc/sys/h8300hms/syscalls.c +++ b/newlib/libc/sys/h8300hms/syscalls.c @@ -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; |