summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-10-07 23:01:31 +0000
committerdelphij <delphij@FreeBSD.org>2009-10-07 23:01:31 +0000
commitc1f5ff22b033569951c811143690967e46dca5a4 (patch)
tree5584eef8e6871e525b9464450d8095f03467687b /tools
parentf2ab3f74a4c388f86d2fc08af9562e5c6ad71a89 (diff)
downloadFreeBSD-src-c1f5ff22b033569951c811143690967e46dca5a4.zip
FreeBSD-src-c1f5ff22b033569951c811143690967e46dca5a4.tar.gz
Fix build on amd64.
PR: misc/139409 Submitted by: gk
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/tmpfs/h_tools.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/regression/tmpfs/h_tools.c b/tools/regression/tmpfs/h_tools.c
index 1339060..6e8a236 100644
--- a/tools/regression/tmpfs/h_tools.c
+++ b/tools/regression/tmpfs/h_tools.c
@@ -50,6 +50,7 @@
#include <sys/event.h>
#include <sys/mount.h>
#include <sys/statvfs.h>
+#include <sys/stdint.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/un.h>
@@ -250,10 +251,10 @@ statvfs_main(int argc, char **argv)
return EXIT_FAILURE;
}
- (void)printf("f_bsize=%llu\n", buf.f_bsize);
- (void)printf("f_blocks=%llu\n", buf.f_blocks);
- (void)printf("f_bfree=%llu\n", buf.f_bfree);
- (void)printf("f_files=%llu\n", buf.f_files);
+ (void)printf("f_bsize=%ju\n", (uintmax_t)buf.f_bsize);
+ (void)printf("f_blocks=%ju\n", (uintmax_t)buf.f_blocks);
+ (void)printf("f_bfree=%ju\n", (uintmax_t)buf.f_bfree);
+ (void)printf("f_files=%ju\n", (uintmax_t)buf.f_files);
return EXIT_SUCCESS;
}
OpenPOWER on IntegriCloud