From fa71f50a8f6575edc0d31fe2742619ef349e3c97 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 4 Dec 2013 19:06:46 +0100 Subject: [PATCH] ldd(1): Raise WARNS to 2 and fix warnings. --- usr.bin/ldd/Makefile | 3 +-- usr.bin/ldd/sods.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/usr.bin/ldd/Makefile b/usr.bin/ldd/Makefile index 2d32d695e5..9c95ff1a3f 100644 --- a/usr.bin/ldd/Makefile +++ b/usr.bin/ldd/Makefile @@ -1,11 +1,10 @@ # $FreeBSD: src/usr.bin/ldd/Makefile,v 1.11 1999/08/28 01:02:42 peter Exp $ -# $DragonFly: src/usr.bin/ldd/Makefile,v 1.3 2007/08/27 16:50:55 pavalos Exp $ PROG= ldd SRCS= ldd.c .if ${MACHINE_ARCH} == "i386" SRCS+= sods.c .endif -WARNS?= 1 +WARNS?= 2 .include diff --git a/usr.bin/ldd/sods.c b/usr.bin/ldd/sods.c index caee2054b0..52c42154ea 100644 --- a/usr.bin/ldd/sods.c +++ b/usr.bin/ldd/sods.c @@ -23,7 +23,6 @@ * SUCH DAMAGE. * * $FreeBSD: src/usr.bin/ldd/sods.c,v 1.9.2.2 2001/07/11 23:59:11 obrien Exp $ - * $DragonFly: src/usr.bin/ldd/sods.c,v 1.5 2004/08/19 23:40:15 joerg Exp $ */ #include @@ -190,7 +189,7 @@ dump_file(const char *fname) ex = (const struct exec *) file_base; printf("%s: a_midmag = 0x%lx\n", fname, ex->a_midmag); - printf(" magic = 0x%lx = 0%lo, netmagic = 0x%lx = 0%lo\n", + printf(" magic = 0x%lx = 0%lo, netmagic = 0x%x = 0%o\n", N_GETMAGIC(*ex), N_GETMAGIC(*ex), N_GETMAGIC_NET(*ex), N_GETMAGIC_NET(*ex)); -- 2.41.0