summaryrefslogtreecommitdiff
path: root/lib/libc/string/strchr.c
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2023-04-21 21:56:45 -0400
committerstefan <stefan@s00.xyz>2023-04-21 21:56:45 -0400
commit386ad4f82955d389ae347bc50f7efca5edb9d9a8 (patch)
treec18143b0a593e80145f003707a4eb29fa25d0f33 /lib/libc/string/strchr.c
parenteff82c45c589b42061344039d5f2efc8ad7c52df (diff)
downloadsv-386ad4f82955d389ae347bc50f7efca5edb9d9a8.tar.gz
actually got libfdt working
Diffstat (limited to 'lib/libc/string/strchr.c')
-rw-r--r--lib/libc/string/strchr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/string/strchr.c b/lib/libc/string/strchr.c
index 09b4d43..f8b3339 100644
--- a/lib/libc/string/strchr.c
+++ b/lib/libc/string/strchr.c
@@ -2,9 +2,8 @@
char *strchr(const char *s, int c) {
do {
- if ((char)c == *s) {
+ if ((char)c == *s)
return (char*)s;
- }
} while (*s++ != '\0');
return NULL;
}