diff options
author | Carlos O'Donell <codonell@redhat.com> | 2013-02-04 20:06:46 -0500 |
---|---|---|
committer | Carlos O'Donell <codonell@redhat.com> | 2013-02-04 20:11:36 -0500 |
commit | 9a0d1941d30221ed8875ebef4c080bd726740802 (patch) | |
tree | 2daf50b338ee434a78e8c4892f4330888db8698d /stdlib | |
parent | c51ebd9c78e3d054bec29bee132608fc5edec1d1 (diff) | |
download | glibc-9a0d1941d30221ed8875ebef4c080bd726740802.tar.gz |
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.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/getenv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/stdlib/getenv.c b/stdlib/getenv.c index ee9d2b39d9..f33c22f440 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) { |