This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.17-187-g9a0d194
- From: carlos at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 5 Feb 2013 01:20:35 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-187-g9a0d194
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 9a0d1941d30221ed8875ebef4c080bd726740802 (commit)
from c51ebd9c78e3d054bec29bee132608fc5edec1d1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=9a0d1941d30221ed8875ebef4c080bd726740802
commit 9a0d1941d30221ed8875ebef4c080bd726740802
Author: Carlos O'Donell <codonell@redhat.com>
Date: Mon Feb 4 20:06:46 2013 -0500
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.
diff --git a/ChangeLog b/ChangeLog
index 2e84358..3ca2253 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/stdlib/getenv.c b/stdlib/getenv.c
index ee9d2b3..f33c22f 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)
{
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
stdlib/getenv.c | 4 ----
2 files changed, 5 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU C Library master sources