From 31767b532e69c5a63df0106fa08e137e3106a449 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 7 May 2020 00:16:52 +0200 Subject: Some fixes here and there... Also implemented serial console in userspace --- src/kernel/lib/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/lib') diff --git a/src/kernel/lib/memory.c b/src/kernel/lib/memory.c index d990e6b..192e08d 100644 --- a/src/kernel/lib/memory.c +++ b/src/kernel/lib/memory.c @@ -24,8 +24,8 @@ void *memset(void *dest, char val, u32 count) int memcmp(const void *a_ptr, const void *b_ptr, u32 size) { - const unsigned char *a = (const unsigned char *)a_ptr; - const unsigned char *b = (const unsigned char *)b_ptr; + const u8 *a = (const u8 *)a_ptr; + const u8 *b = (const u8 *)b_ptr; for (u32 i = 0; i < size; i++) { if (a[i] < b[i]) return -1; -- cgit v1.2.3