mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +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:
parent
08945e887f
commit
89d500c6a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159076
@ -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