diff options
| author | Miguel <m.i@gmx.at> | 2018-09-09 11:49:30 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-09 11:49:30 +0200 |
| commit | e85a68e1536a0f6505300e1cb79f06b9743b00f7 (patch) | |
| tree | c503a7681720925c5f4923e26c01f7b2e697023d /kernel/syscalls.c | |
| parent | fc1d491479abd74a1e038ad9ff7d4d330d79e4a8 (diff) | |
fixing implicit func declarations!
Diffstat (limited to 'kernel/syscalls.c')
| -rw-r--r-- | kernel/syscalls.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |
