mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03: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:
@ -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>
|
2013-02-04 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
* sysdeps/sparc/fpu/libm-test-ulps: Update.
|
* sysdeps/sparc/fpu/libm-test-ulps: Update.
|
||||||
|
@ -48,11 +48,7 @@ getenv (name)
|
|||||||
#if __BYTE_ORDER == __LITTLE_ENDIAN || !_STRING_ARCH_unaligned
|
#if __BYTE_ORDER == __LITTLE_ENDIAN || !_STRING_ARCH_unaligned
|
||||||
name_start = ('=' << 8) | *(const unsigned char *) name;
|
name_start = ('=' << 8) | *(const unsigned char *) name;
|
||||||
#else
|
#else
|
||||||
# if __BYTE_ORDER == __BIG_ENDIAN
|
|
||||||
name_start = '=' | ((*(const unsigned char *) name) << 8);
|
name_start = '=' | ((*(const unsigned char *) name) << 8);
|
||||||
# else
|
|
||||||
#error "Funny byte order."
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
for (ep = __environ; *ep != NULL; ++ep)
|
for (ep = __environ; *ep != NULL; ++ep)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user