diff options
author | Marvin Borner | 2020-05-13 21:28:56 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-13 22:12:41 +0200 |
commit | a9c7529dcca845d98192ece62be70f752972216b (patch) | |
tree | 666d49ceb411a669abe6191151b2238fd7156c30 /src/kernel/lib/stdlib/htoa.c | |
parent | e1a6ed079303dc7d218f1d5326a13b6755781271 (diff) |
Replaced alloc.h with liballoc
And many more adaptions to the lib
Diffstat (limited to 'src/kernel/lib/stdlib/htoa.c')
-rw-r--r-- | src/kernel/lib/stdlib/htoa.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |