aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/stdlib/htoi.c
diff options
context:
space:
mode:
authorMarvin Borner2020-04-29 21:16:56 +0200
committerMarvin Borner2020-04-29 21:16:56 +0200
commit0f54f0de1004c6e9a455c295dc76879ac37a408f (patch)
treeb3a6b086f33689fe887fdfcf80fa4e749b07d119 /src/userspace/libc/stdlib/htoi.c
parent4546c75d685475d8b9f215b588364e1d1bbd0b79 (diff)
Fixed several warnings, errors and dumb bugs
Diffstat (limited to 'src/userspace/libc/stdlib/htoi.c')
-rw-r--r--src/userspace/libc/stdlib/htoi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userspace/libc/stdlib/htoi.c b/src/userspace/libc/stdlib/htoi.c
index cf79b7a..8897d20 100644
--- a/src/userspace/libc/stdlib/htoi.c
+++ b/src/userspace/libc/stdlib/htoi.c
@@ -5,9 +5,9 @@
int htoi(char *str)
{
- u8 s_str = strlen(str);
+ u32 s_str = strlen(str);
- u8 i = 0;
+ u32 i = 0;
int ret = 0;
for (; i < s_str; i++) {
char c = str[i];