OSDN Git Service

ldd.c: change syntax, no size and no functional change
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 24 Mar 2011 23:56:59 +0000 (00:56 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:33 +0000 (14:00 +0200)
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>
utils/ldd.c

index 908370d..2812d2a 100644 (file)
@@ -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) {