svn commit: r197849 - head/tools/regression/tmpfs

Xin LI delphij at FreeBSD.org
Wed Oct 7 23:01:32 UTC 2009


Author: delphij
Date: Wed Oct  7 23:01:31 2009
New Revision: 197849
URL: http://svn.freebsd.org/changeset/base/197849

Log:
  Fix build on amd64.
  
  PR:		misc/139409
  Submitted by:	gk

Modified:
  head/tools/regression/tmpfs/h_tools.c

Modified: head/tools/regression/tmpfs/h_tools.c
==============================================================================
--- head/tools/regression/tmpfs/h_tools.c	Wed Oct  7 22:21:53 2009	(r197848)
+++ head/tools/regression/tmpfs/h_tools.c	Wed Oct  7 23:01:31 2009	(r197849)
@@ -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;
 }


More information about the svn-src-all mailing list