summaryrefslogtreecommitdiff
path: root/src/user/lib/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/string.c')
-rw-r--r--src/user/lib/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/lib/string.c b/src/user/lib/string.c
index 92b2e51..a6ac75b 100644
--- a/src/user/lib/string.c
+++ b/src/user/lib/string.c
@@ -52,7 +52,7 @@ long strtol(const char *restrict s, char **restrict end, int base) {
char *strchr(const char *s, int c) {
while (*s) {
- if (*s == c) return s;
+ if (*s == c) return (char*)s;
s++;
}
return NULL;