[git commit] ldd.c: change syntax, no size and no functional change
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:33 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=8808c26863c1d84062fd85340e0bb8971c30ebbc
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Proposed-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
utils/ldd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/utils/ldd.c b/utils/ldd.c
index 908370d..2812d2a 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -231,7 +231,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) {
More information about the uClibc-cvs
mailing list