mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
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:
parent
c51ebd9c78
commit
9a0d1941d3
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user