aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/stdlib/atoi.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-06 19:04:05 +0200
committerMarvin Borner2020-05-06 19:04:05 +0200
commitd94ffac4a584dc7a4f6f2ec567b8caab05ce9253 (patch)
tree559cd596a0a407d4b40c1d12d3c6a0686494da16 /src/kernel/lib/stdlib/atoi.c
parent1a8563a05608b5b5e27eada44cf4790926001c68 (diff)
New build parameters and shared includes
This changes many files but I've just applied some replace commands.. So - nothing special!
Diffstat (limited to 'src/kernel/lib/stdlib/atoi.c')
-rw-r--r--src/kernel/lib/stdlib/atoi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/lib/stdlib/atoi.c b/src/kernel/lib/stdlib/atoi.c
index 2d58d84..cd855ab 100644
--- a/src/kernel/lib/stdlib/atoi.c
+++ b/src/kernel/lib/stdlib/atoi.c
@@ -1,19 +1,19 @@
-#include <kernel/lib/math.h>
+#include <lib/math.h>
#include <stddef.h>
#include <stdint.h>
-#include <kernel/lib/string.h>
+#include <lib/string.h>
int atoi(char *str)
{
- size_t s_str = strlen(str);
+ u32 s_str = strlen(str);
if (!s_str)
return 0;
- uint8_t negative = 0;
+ u8 negative = 0;
if (str[0] == '-')
negative = 1;
- size_t i = 0;
+ u32 i = 0;
if (negative)
i++;