From 9a0d1941d30221ed8875ebef4c080bd726740802 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Mon, 4 Feb 2013 20:06:46 -0500 Subject: getenv: Remove check for non-standard endianness. stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the else clause and remove check for non-standard endianness. --- stdlib/getenv.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'stdlib/getenv.c') diff --git a/stdlib/getenv.c b/stdlib/getenv.c index ee9d2b3..f33c22f 100644 --- a/stdlib/getenv.c +++ b/stdlib/getenv.c @@ -48,11 +48,7 @@ getenv (name) #if __BYTE_ORDER == __LITTLE_ENDIAN || !_STRING_ARCH_unaligned name_start = ('=' << 8) | *(const unsigned char *) name; #else -# if __BYTE_ORDER == __BIG_ENDIAN name_start = '=' | ((*(const unsigned char *) name) << 8); -# else - #error "Funny byte order." -# endif #endif for (ep = __environ; *ep != NULL; ++ep) { -- cgit v1.1