aboutsummaryrefslogtreecommitdiff
path: root/syscalls.c
diff options
context:
space:
mode:
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 1624454..fc842c0 100644
--- a/syscalls.c
+++ b/syscalls.c
@@ -102,6 +102,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;
}
#endif
@@ -117,6 +120,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;