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 2006-05-30 19:10:18 +00:00
parent bac62c64f5
commit 74aa397f16
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,