aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/lib/stdlib')
-rw-r--r--src/kernel/lib/stdlib/htoa.c4
-rw-r--r--src/kernel/lib/stdlib/itoa.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/lib/stdlib/htoa.c b/src/kernel/lib/stdlib/htoa.c
index 85bd750..660e26c 100644
--- a/src/kernel/lib/stdlib/htoa.c
+++ b/src/kernel/lib/stdlib/htoa.c
@@ -2,7 +2,7 @@
#include <kernel/lib/string.h>
#include <kernel/lib/stdlib.h>
-static const char __HTOA_TABLE[] = "0123456789ABCDEF";
+static const char HTOA_TABLE[] = "0123456789ABCDEF";
char *htoa(uint32_t n)
{
@@ -10,7 +10,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;
}
diff --git a/src/kernel/lib/stdlib/itoa.c b/src/kernel/lib/stdlib/itoa.c
index 897fd55..67273b3 100644
--- a/src/kernel/lib/stdlib/itoa.c
+++ b/src/kernel/lib/stdlib/itoa.c
@@ -4,7 +4,7 @@
#include <kernel/lib/stdlib.h>
#include <kernel/paging/paging.h>
-static const char __ITOA_TABLE[] = "0123456789";
+static const char ITOA_TABLE[] = "0123456789";
char *itoa(int n)
{
@@ -27,7 +27,7 @@ char *itoa(int n)
for (int i = 0; i < sz; i++) {
int digit = (n % pow(10, i + 1)) / pow(10, i);
- ret[i] = __ITOA_TABLE[digit];
+ ret[i] = ITOA_TABLE[digit];
}
ret[sz] = 0;