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.
This commit is contained in:
Carlos O'Donell 2013-02-04 20:06:46 -05:00
parent c51ebd9c78
commit 9a0d1941d3
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2013-02-04 Carlos O'Donell <carlos@redhat.com>
* stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
else clause and remove check for non-standard endianness.
2013-02-04 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/fpu/libm-test-ulps: Update.

View file

@ -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)
{