From c3e4cda23b025d80a001a20758a907964a220361 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 17:15:10 -0500 Subject: clean up headers --- src/ctype/tolower.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/ctype/tolower.c') diff --git a/src/ctype/tolower.c b/src/ctype/tolower.c index cec51f62..0cbdb9d4 100644 --- a/src/ctype/tolower.c +++ b/src/ctype/tolower.c @@ -1,6 +1,3 @@ -#include -#include -#include #include "_ctype.h" /** convert an uppercase letter to lowercase **/ @@ -12,11 +9,7 @@ int tolower(int c) SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); - if (c == EOF) { - return EOF; - } - - return map[c]; + return c == EOF ? EOF : map[c]; } __check_1(int, 0, tolower, int) -- cgit v1.2.1