summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/islower.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-09 23:14:53 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-09 23:14:53 +0100
commit169daa11155988a210fac949297381743f3cb400 (patch)
tree602ef5df5ae9ea075ab3d5dac3c8ad60da1ea2cc /lib/libc/ctype/islower.c
parent4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff)
feat: clang-tidy fixes
Diffstat (limited to 'lib/libc/ctype/islower.c')
-rw-r--r--lib/libc/ctype/islower.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/ctype/islower.c b/lib/libc/ctype/islower.c
index a6108e39..8438c8d1 100644
--- a/lib/libc/ctype/islower.c
+++ b/lib/libc/ctype/islower.c
@@ -1,8 +1,12 @@
-#include <libc.h> // for weak_reference
+#include <ctype.h> // for islower, islower_l, locale_t
+#include <sys/cdefs.h> // for __unused, __weak
int islower(int c)
{
return (unsigned)c - 'a' < 26;
}
-weak_reference(islower, islower_l);
+__weak int islower_l(int c, locale_t __unused locale)
+{
+ return islower(c);
+}