summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-01-08 17:19:56 +0000
committerpjd <pjd@FreeBSD.org>2005-01-08 17:19:56 +0000
commit08319f85fb7bb2d5a5d31a41885cabcd5c665233 (patch)
tree03a73a13c565bd9734d02e71a5317852316798d7 /sbin
parentf37d6c57e71827ca80c261bc6fba2acc2a22aa4e (diff)
downloadFreeBSD-src-08319f85fb7bb2d5a5d31a41885cabcd5c665233.zip
FreeBSD-src-08319f85fb7bb2d5a5d31a41885cabcd5c665233.tar.gz
Cast to intmax_t when using %jd format.
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r--sbin/newfs/newfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index f39b55b..f5a0154 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -299,7 +299,7 @@ main(int argc, char *argv[])
fssize = mediasize / sectorsize;
else if (fssize > mediasize / sectorsize)
errx(1, "%s: maximum file system size is %jd",
- special, (off_t)(mediasize / sectorsize));
+ special, (intmax_t)(mediasize / sectorsize));
}
pp = NULL;
lp = getdisklabel(special);
OpenPOWER on IntegriCloud