aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/mlibc/stdlib/htoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/mlibc/stdlib/htoa.c')
-rw-r--r--src/userspace/mlibc/stdlib/htoa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/userspace/mlibc/stdlib/htoa.c b/src/userspace/mlibc/stdlib/htoa.c
index 098e1c8..579db5d 100644
--- a/src/userspace/mlibc/stdlib/htoa.c
+++ b/src/userspace/mlibc/stdlib/htoa.c
@@ -1,8 +1,8 @@
#include <stdint.h>
-#include <mlibc/string.h>
+#include <mlibc/stdlib.h>
#include <mlibc/stdlib.h>
-static const char __HTOA_TABLE[] = "0123456789ABCDEF";
+static const char HTOA_TABLE[] = "0123456789ABCDEF";
char *htoa(uint32_t n)
{
@@ -11,7 +11,7 @@ char *htoa(uint32_t n)
int i = 0;
while (n) {
- ret[i++] = __HTOA_TABLE[n & 0xF];
+ ret[i++] = HTOA_TABLE[n & 0xF];
n >>= 4;
}