From edf86881446717b633dbb2aaac7b25dbc4630c3f Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 26 Jun 2024 21:17:06 +0200 Subject: Kernel: Code cleanup --- kernel/libc/exit/assert.c | 2 +- kernel/libc/string/copy.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kernel/libc') diff --git a/kernel/libc/exit/assert.c b/kernel/libc/exit/assert.c index 89aa863..fd5f086 100644 --- a/kernel/libc/exit/assert.c +++ b/kernel/libc/exit/assert.c @@ -1,7 +1,7 @@ #include +#include #include #include -#include __attribute__((__noreturn__)) void aFailed(char *f, int l) { kprintf("Assert failed\n"); diff --git a/kernel/libc/string/copy.c b/kernel/libc/string/copy.c index 3ab5618..17f720c 100644 --- a/kernel/libc/string/copy.c +++ b/kernel/libc/string/copy.c @@ -1,8 +1,8 @@ #include #include +#include #include #include -#include char *copy_and_allocate_string(const char *s) { size_t l = strlen(s) + 1; @@ -26,6 +26,6 @@ char *copy_and_allocate_user_string(const char *s) { if (!r) { return NULL; } - memcpy(r, s, len+1); + memcpy(r, s, len + 1); return r; } -- cgit v1.2.3