diff options
author | Anton Kling <anton@kling.gg> | 2024-06-26 21:17:06 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-26 21:20:47 +0200 |
commit | edf86881446717b633dbb2aaac7b25dbc4630c3f (patch) | |
tree | 5270af1ffcbd83ee4cd3809fd6cf525780d1f431 /kernel/libc | |
parent | 58423a4cf62ee848fac5ee6755fa459c7db5acb2 (diff) |
Kernel: Code cleanup
Diffstat (limited to 'kernel/libc')
-rw-r--r-- | kernel/libc/exit/assert.c | 2 | ||||
-rw-r--r-- | kernel/libc/string/copy.c | 4 |
2 files changed, 3 insertions, 3 deletions
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 <assert.h> +#include <cpu/arch_inst.h> #include <log.h> #include <stdio.h> -#include <cpu/arch_inst.h> __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 <assert.h> #include <kmalloc.h> +#include <mmu.h> #include <stddef.h> #include <string.h> -#include <mmu.h> 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; } |