From f495cc1e93710c233292a503720ec235a61b685c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Mar 2020 17:32:50 +0100 Subject: Applied official linux kernel code style guidelines Due to my change to vim and the clang-format plugin this was needed! --- src/kernel/syscall/actions/sys_read.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/kernel/syscall/actions/sys_read.c') diff --git a/src/kernel/syscall/actions/sys_read.c b/src/kernel/syscall/actions/sys_read.c index ed2cca8..24d83d1 100644 --- a/src/kernel/syscall/actions/sys_read.c +++ b/src/kernel/syscall/actions/sys_read.c @@ -6,16 +6,16 @@ uint32_t sys_read(char *buf) { - keyboard_clear_buffer(); - keyboard_char_buffer = 0; - while (keyboard_char_buffer != '\n') { - getch(); - } - memcpy(buf, keyboard_buffer, strlen(keyboard_buffer)); - return strlen(buf); + keyboard_clear_buffer(); + keyboard_char_buffer = 0; + while (keyboard_char_buffer != '\n') { + getch(); + } + memcpy(buf, keyboard_buffer, strlen(keyboard_buffer)); + return strlen(buf); } uint32_t sys_readc() { - return (uint32_t) getch(); + return (uint32_t)getch(); } \ No newline at end of file -- cgit v1.2.3