aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall/actions/sys_read.c')
-rw-r--r--src/kernel/syscall/actions/sys_read.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/kernel/syscall/actions/sys_read.c b/src/kernel/syscall/actions/sys_read.c
index 02960f6..83e645c 100644
--- a/src/kernel/syscall/actions/sys_read.c
+++ b/src/kernel/syscall/actions/sys_read.c
@@ -16,10 +16,7 @@ uint32_t sys_read(char *buf)
return strlen(buf);
}
-uint32_t sys_readc(char *ch)
+uint32_t sys_readc()
{
- char buf = getch();
- ch = &buf;
- serial_put(*ch);
- return (uint32_t) ch;
+ return (uint32_t) getch();
} \ No newline at end of file