Fix the time of an intmax_t calculation; it is unsigned. Also print

it with the correct formatting (%ju, not %lld). GCC's -Wformat does
not understand this, so turn on NO_WERROR.
This commit is contained in:
Mark Murray 2001-12-12 22:46:56 +00:00
parent b0492e310b
commit 5584ad32ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87763
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
PROG= tcopy
NO_WERROR=yes
.include <bsd.prog.mk>

View File

@ -290,7 +290,7 @@ intr(signo)
fprintf(msg, "record %qu\n", lastrec);
}
fprintf(msg, "interrupt at file %d: record %qu\n", filen, record);
fprintf(msg, "total length: %lld bytes\n", (intmax_t)(tsize + size));
fprintf(msg, "total length: %ju bytes\n", (uintmax_t)(tsize + size));
exit(1);
}