diff options
author | dzwdz | 2022-08-12 15:21:59 +0200 |
---|---|---|
committer | dzwdz | 2022-08-12 15:21:59 +0200 |
commit | 55ce6808cd99ecbb06bd9b0fac181ed2c3bf15ff (patch) | |
tree | 2aae9e401d6fc963e106588795666cd8af07bbb4 /src/user/lib/string.c | |
parent | 3fa9fee167b9e6f070aba9a1cec1ce69531d9601 (diff) |
fix some minor warnings
Diffstat (limited to 'src/user/lib/string.c')
-rw-r--r-- | src/user/lib/string.c | 2 |
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; |