summaryrefslogtreecommitdiff
path: root/utils/ldd.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-25 00:56:59 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:33 +0200
commit8808c26863c1d84062fd85340e0bb8971c30ebbc (patch)
tree22a5b31e9d63f0aba30bf7b5079988c490addc50 /utils/ldd.c
parentb5b89546cac76aeb6d18b36418edda2175f88eca (diff)
ldd.c: change syntax, no size and no functional change
Proposed-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'utils/ldd.c')
-rw-r--r--utils/ldd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index 908370dfe..2812d2a07 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) {