1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Make recoverdisk compile on amd64 and possibly other 64bit archs.

Bump WARNS to 6.

PR:		amd64/97566
Reviewed by:	phk@
MFC after:	3 days
This commit is contained in:
Matteo Riondato 2006-05-30 19:10:18 +00:00
parent 08945e887f
commit 89d500c6a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159076
4 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PROG= recoverdisk
WARNS?= 5
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -228,13 +228,13 @@ main(int argc, char * const argv[])
if (lp == NULL)
break;
while (lp->len > 0 && !aborting) {
i = MIN(lp->len, bigsize);
i = MIN(lp->len, (off_t)bigsize);
if (lp->state == 1)
i = MIN(lp->len, medsize);
i = MIN(lp->len, (off_t)medsize);
if (lp->state > 1)
i = MIN(lp->len, minsize);
i = MIN(lp->len, (off_t)minsize);
time(&t2);
if (t1 != t2 || lp->len < bigsize) {
if (t1 != t2 || lp->len < (off_t)bigsize) {
printf("\r%13jd %7zu %13jd %5d %13jd %13jd %.7f",
(intmax_t)lp->start,
i,

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PROG= recoverdisk
WARNS?= 5
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -228,13 +228,13 @@ main(int argc, char * const argv[])
if (lp == NULL)
break;
while (lp->len > 0 && !aborting) {
i = MIN(lp->len, bigsize);
i = MIN(lp->len, (off_t)bigsize);
if (lp->state == 1)
i = MIN(lp->len, medsize);
i = MIN(lp->len, (off_t)medsize);
if (lp->state > 1)
i = MIN(lp->len, minsize);
i = MIN(lp->len, (off_t)minsize);
time(&t2);
if (t1 != t2 || lp->len < bigsize) {
if (t1 != t2 || lp->len < (off_t)bigsize) {
printf("\r%13jd %7zu %13jd %5d %13jd %13jd %.7f",
(intmax_t)lp->start,
i,