[git commit future 1/1] ldd.c: reduce size

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Mar 24 19:46:52 UTC 2011


On Sat, Mar 19, 2011 at 11:51:25AM -0700, Khem Raj wrote:
>
>commit: http://git.uclibc.org/uClibc/commit/?id=cf814547b1f3a637b8487bae590b3b39593cad1a
>branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future
>
>Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
>---
> utils/ldd.c |   13 +++----------
> 1 files changed, 3 insertions(+), 10 deletions(-)
>
>diff --git a/utils/ldd.c b/utils/ldd.c
>index 3858c81..768c3a8 100644
>--- a/utils/ldd.c
>+++ b/utils/ldd.c

>+	byteswap = (ehdr->e_ident[5] == ELFDATAM) ? 0 : 1;

FWIW, I'd prefer
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