Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Oct 2009 23:01:31 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197849 - head/tools/regression/tmpfs
Message-ID:  <200910072301.n97N1VI6002073@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910072301.n97N1VI6002073>