[git commit future 1/1] ldd.c: change syntax, no size and no functional change

Khem Raj raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=b3d1947d26cb5cd8645b0268ccdd59d596e8bc15
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Proposed-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 utils/ldd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/ldd.c b/utils/ldd.c
index 768c3a8..d163a68 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -224,7 +224,7 @@ static int check_elf_header(ElfW(Ehdr) *const ehdr)
 	}
 
 	/* Check if the target endianness matches the host's endianness */
-	byteswap = (ehdr->e_ident[5] == ELFDATAM) ? 0 : 1;
+	byteswap = !(ehdr->e_ident[5] == ELFDATAM);
 
 	/* Be very lazy, and only byteswap the stuff we use */
 	if (byteswap) {
-- 
1.7.3.4



More information about the uClibc-cvs mailing list