OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b8954
)
ldd.c: change syntax, no size and no functional change
author
Peter S. Mazinger
<ps.m@gmx.net>
Thu, 24 Mar 2011 23:56:59 +0000
(
00:56
+0100)
committer
Bernhard 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
patch
|
blob
|
history
diff --git
a/utils/ldd.c
b/utils/ldd.c
index
908370d
..
2812d2a
100644
(file)
--- 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) {