From 8808c26863c1d84062fd85340e0bb8971c30ebbc Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 25 Mar 2011 00:56:59 +0100 Subject: ldd.c: change syntax, no size and no functional change Proposed-by: Bernhard Reutner-Fischer Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- utils/ldd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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) { -- cgit v1.2.3