From 81819f711e6d1f9216f688da8ecbbc682d106d9c Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 23 Nov 2023 00:52:35 +0100 Subject: LibC: Reduce warnings in code --- userland/libc/string/strpbrk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'userland/libc/string/strpbrk.c') diff --git a/userland/libc/string/strpbrk.c b/userland/libc/string/strpbrk.c index fb16b0c..3bb058b 100644 --- a/userland/libc/string/strpbrk.c +++ b/userland/libc/string/strpbrk.c @@ -4,7 +4,7 @@ char *strpbrk(const char *s1, const char *s2) { for (; *s1; s1++) { for (const char *t = s2; *t; t++) { if (*s1 == *t) { - return s1; + return (char*)s1; } } } -- cgit v1.2.3