From: Carlos O'Donell Date: Tue, 5 Feb 2013 01:06:46 +0000 (-0500) Subject: getenv: Remove check for non-standard endianness. X-Git-Tag: upstream/2.30~9561 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a0d1941d30221ed8875ebef4c080bd726740802;p=external%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index 2e84358..3ca2253 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-02-04 Carlos O'Donell + + * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the + else clause and remove check for non-standard endianness. + 2013-02-04 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Update. 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) {