summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2007-12-21 06:43:26 +0000
committeryamt <yamt@NetBSD.org>2007-12-21 06:43:26 +0000
commitc7bc0cd0aaa317b5c62e91cda3c03820d5aba935 (patch)
treedba1c68124e947d2f5a715c57b2ec050303aa497
parent75727a9ea595dd22885e36b3c8f28794947aed97 (diff)
don't cast 64bit values to u_long.
-rw-r--r--bin/df/df.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index f9533553412..81a290fb621 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -1,4 +1,4 @@
-/* $NetBSD: df.c,v 1.76 2007/07/17 20:03:10 christos Exp $ */
+/* $NetBSD: df.c,v 1.77 2007/12/21 06:43:26 yamt Exp $ */
/*
* Copyright (c) 1980, 1990, 1993, 1994
@@ -45,7 +45,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: df.c,v 1.76 2007/07/17 20:03:10 christos Exp $");
+__RCSID("$NetBSD: df.c,v 1.77 2007/12/21 06:43:26 yamt Exp $");
#endif
#endif /* not lint */
@@ -487,8 +487,8 @@ prtstat(struct statvfs *sfsp, int maxwidth)
if (iflag) {
inodes = sfsp->f_files;
used = inodes - sfsp->f_ffree;
- (void)printf(" %8ld %8ld %4s",
- (u_long)used, (u_long)sfsp->f_ffree,
+ (void)printf(" %8" PRIdMAX " %8" PRIdMAX " %4s",
+ (intmax_t)used, (intmax_t)sfsp->f_ffree,
inodes == 0 ? (used == 0 ? empty : full) :
strpct64((uint64_t)used, (uint64_t)inodes, 0));
}