summaryrefslogtreecommitdiffstats
path: root/usr.bin/size
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
committerbde <bde@FreeBSD.org>1998-07-06 21:01:54 +0000
commit0609531ab6b945c4918206f095bc1f6640408654 (patch)
tree0e5040099f85d8bf99734db8ff976b2c1e7d1b49 /usr.bin/size
parentbaf42e5599bd1cbdb2a0e5427980549767a002b8 (diff)
downloadFreeBSD-src-0609531ab6b945c4918206f095bc1f6640408654.zip
FreeBSD-src-0609531ab6b945c4918206f095bc1f6640408654.tar.gz
Fixed printf format errors.
Diffstat (limited to 'usr.bin/size')
-rw-r--r--usr.bin/size/size.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/size/size.c b/usr.bin/size/size.c
index 50fc314..69322d3 100644
--- a/usr.bin/size/size.c
+++ b/usr.bin/size/size.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)size.c 8.2 (Berkeley) 12/9/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: size.c,v 1.3 1997/08/11 07:28:19 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -109,8 +109,8 @@ show(count, name)
(void)printf("text\tdata\tbss\tdec\thex\n");
}
total = head.a_text + head.a_data + head.a_bss;
- (void)printf("%lu\t%lu\t%lu\t%lu\t%lx", head.a_text, head.a_data,
- head.a_bss, total, total);
+ (void)printf("%lu\t%lu\t%lu\t%lu\t%lx", (u_long)head.a_text,
+ (u_long)head.a_data, (u_long)head.a_bss, total, total);
if (count > 1)
(void)printf("\t%s", name);
(void)printf("\n");
OpenPOWER on IntegriCloud