Cast to intmax_t when using %jd format.
MFC after: 3 days
This commit is contained in:
parent
2353e77b0f
commit
e075f345b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139909
@ -299,7 +299,7 @@ main(int argc, char *argv[])
|
|||||||
fssize = mediasize / sectorsize;
|
fssize = mediasize / sectorsize;
|
||||||
else if (fssize > mediasize / sectorsize)
|
else if (fssize > mediasize / sectorsize)
|
||||||
errx(1, "%s: maximum file system size is %jd",
|
errx(1, "%s: maximum file system size is %jd",
|
||||||
special, (off_t)(mediasize / sectorsize));
|
special, (intmax_t)(mediasize / sectorsize));
|
||||||
}
|
}
|
||||||
pp = NULL;
|
pp = NULL;
|
||||||
lp = getdisklabel(special);
|
lp = getdisklabel(special);
|
||||||
|
Loading…
Reference in New Issue
Block a user