From a9c7529dcca845d98192ece62be70f752972216b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 13 May 2020 21:28:56 +0200 Subject: Replaced alloc.h with liballoc And many more adaptions to the lib --- src/kernel/lib/stdlib/htoa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/lib/stdlib/htoa.c') diff --git a/src/kernel/lib/stdlib/htoa.c b/src/kernel/lib/stdlib/htoa.c index c4dbd5e..9cf57cc 100644 --- a/src/kernel/lib/stdlib/htoa.c +++ b/src/kernel/lib/stdlib/htoa.c @@ -6,7 +6,7 @@ static const char HTOA_TABLE[] = "0123456789ABCDEF"; char *htoa(u32 n) { - char *ret = (char *)kmalloc(10); + char *ret = (char *)malloc(10); int i = 0; while (n) { @@ -23,7 +23,7 @@ char *htoa(u32 n) ret[i] = 0; char *aux = strdup(ret); - kfree(ret); + free(ret); ret = aux; strinv(ret); -- cgit v1.2.3