From 69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 18:24:54 +0100 Subject: Add getauxval and cleanup libc startup --- lib/libc/strings/strcasecmp.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/libc/strings/strcasecmp.c') diff --git a/lib/libc/strings/strcasecmp.c b/lib/libc/strings/strcasecmp.c index fc38be4a..476a5d8d 100644 --- a/lib/libc/strings/strcasecmp.c +++ b/lib/libc/strings/strcasecmp.c @@ -1,8 +1,7 @@ -#include "features.h" // for __weak - #include // for tolower #include // for __unused #include // for locale_t +#include int strcasecmp(const char *s1, const char *s2) { @@ -17,12 +16,10 @@ int strcasecmp(const char *s1, const char *s2) s2++; } - return (unsigned char)tolower((unsigned char)*s1) - - (unsigned char)tolower((unsigned char)*s2); + return (unsigned char)tolower((unsigned char)*s1) - (unsigned char)tolower((unsigned char)*s2); } -__weak int strcasecmp_l(const char *s1, const char *s2, - locale_t __unused locale) +__weak int strcasecmp_l(const char *s1, const char *s2, locale_t __unused locale) { return strcasecmp(s1, s2); } -- cgit v1.2.3