[1/2] libgloss/riscv: Fix old style function declaration warnings
Commit Message
Signed-off-by: Pincheng Wang <pincheng.plct@isrc.iscas.ac.cn>
---
libgloss/libnosys/sbrk.c | 3 +--
libgloss/riscv/semihost-sys_sbrk.c | 3 +--
libgloss/riscv/sys_sbrk.c | 3 +--
3 files changed, 3 insertions(+), 6 deletions(-)
@@ -4,8 +4,7 @@
#include <_syslist.h>
void *
-_sbrk (incr)
- int incr;
+_sbrk (int incr)
{
extern char end; /* Set by linker. */
static char * heap_end;
@@ -12,8 +12,7 @@ char *heap_ptr;
* left of memory on the board.
*/
char *
-_sbrk (nbytes)
- int nbytes;
+_sbrk (int nbytes)
{
char *base;
@@ -10,8 +10,7 @@ char *heap_ptr;
* left of memory on the board.
*/
char *
-_sbrk (nbytes)
- int nbytes;
+_sbrk (int nbytes)
{
char *base;