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:
parent
bac62c64f5
commit
74aa397f16
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= recoverdisk
|
||||
WARNS?= 5
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
@ -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,
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= recoverdisk
|
||||
WARNS?= 5
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user