aboutsummaryrefslogtreecommitdiff
path: root/syscalls.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-10-11 21:26:27 -0400
committerPaul Selkirk <paul@psgd.org>2017-10-11 21:26:27 -0400
commitb159bf0bb24a99c7d3ff1b3855f840add63198e5 (patch)
tree9e3861da94bb69412025ef51db5a686d717d7a84 /syscalls.c
parent4026cce22d330d3b9c4b218dd2e19d4f60412e05 (diff)
Cleanup 'unused parameter' warnings, a couple of which are actual coding errors.
Diffstat (limited to 'syscalls.c')
-rw-r--r--syscalls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/syscalls.c b/syscalls.c
index d7b7211..2243d0b 100644
--- a/syscalls.c
+++ b/syscalls.c
@@ -101,6 +101,9 @@ int _write_r (struct _reent *r, int file, char * ptr, int len)
int _close_r (struct _reent *r, int file)
{
+ r = r;
+ file = file;
+
return 0;
}
@@ -115,6 +118,8 @@ caddr_t _sbrk_r (struct _reent *r, int incr)
static char * heap_end;
char * prev_heap_end;
+ r = r;
+
if (heap_end == NULL)
heap_end = & end;