Skip to content

Commit b1d2580

Browse files
wpcwzykito-cheng
authored andcommitted
libgloss/riscv: Fix old style function declaration warnings
Signed-off-by: Pincheng Wang <[email protected]>
1 parent 008f8bf commit b1d2580

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

libgloss/libnosys/sbrk.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
#include <_syslist.h>
55

66
void *
7-
_sbrk (incr)
8-
int incr;
7+
_sbrk (int incr)
98
{
109
extern char end; /* Set by linker. */
1110
static char * heap_end;

libgloss/riscv/semihost-sys_sbrk.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ char *heap_ptr;
1212
* left of memory on the board.
1313
*/
1414
char *
15-
_sbrk (nbytes)
16-
int nbytes;
15+
_sbrk (int nbytes)
1716
{
1817
char *base;
1918

libgloss/riscv/sys_sbrk.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ char *heap_ptr;
1010
* left of memory on the board.
1111
*/
1212
char *
13-
_sbrk (nbytes)
14-
int nbytes;
13+
_sbrk (int nbytes)
1514
{
1615
char *base;
1716

0 commit comments

Comments
 (0)