mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user