From e85a68e1536a0f6505300e1cb79f06b9743b00f7 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 9 Sep 2018 11:49:30 +0200 Subject: fixing implicit func declarations! --- kernel/syscalls.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kernel/syscalls.c') diff --git a/kernel/syscalls.c b/kernel/syscalls.c index 67ae48d..a49429d 100644 --- a/kernel/syscalls.c +++ b/kernel/syscalls.c @@ -95,8 +95,10 @@ int syscall_read(int file, char *buf, int len) buf++; l++; + return l; if(l==len)return l; if(c=='\n')return l; + } //TODO: replace with dirent! @@ -375,4 +377,5 @@ uint32_t syscall_generic(uint32_t nr,uint32_t p1, uint32_t p2, uint32_t p3, uint case SYSCALL_POLL : return syscall_poll(p1); } + return -1; } -- cgit v1.2.3