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:
parent
b0492e310b
commit
5584ad32ad
@ -1,5 +1,7 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= tcopy
|
||||
NO_WERROR=yes
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user