diff options
author | Marvin Borner | 2020-03-18 17:32:50 +0100 |
---|---|---|
committer | Marvin Borner | 2020-03-18 17:32:50 +0100 |
commit | f495cc1e93710c233292a503720ec235a61b685c (patch) | |
tree | 23b0b4b82b6d80001c1ffdb15f00b93cbdc65722 /src/userspace/mlibc/stdio/readline.c | |
parent | c6657aac0c5d5ecf347bc082cb6df38e1174d297 (diff) |
Applied official linux kernel code style guidelines
Due to my change to vim and the clang-format plugin this was needed!
Diffstat (limited to 'src/userspace/mlibc/stdio/readline.c')
-rw-r--r-- | src/userspace/mlibc/stdio/readline.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/userspace/mlibc/stdio/readline.c b/src/userspace/mlibc/stdio/readline.c index 68e8499..b59545b 100644 --- a/src/userspace/mlibc/stdio/readline.c +++ b/src/userspace/mlibc/stdio/readline.c @@ -3,12 +3,12 @@ char *readline() { - char *ret = malloc(256); - char buf = 0; - while (buf != '\n') { - buf = getch(); - writec(buf); - strcpy(ret, &buf); - } - return ret; + char *ret = malloc(256); + char buf = 0; + while (buf != '\n') { + buf = getch(); + writec(buf); + strcpy(ret, &buf); + } + return ret; }
\ No newline at end of file |