summaryrefslogtreecommitdiff
path: root/kernel/libc
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/libc')
-rw-r--r--kernel/libc/exit/assert.c2
-rw-r--r--kernel/libc/string/copy.c4
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;
}