summaryrefslogtreecommitdiffstats
path: root/usr.bin/tcopy/tcopy.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-12 22:46:56 +0000
committermarkm <markm@FreeBSD.org>2001-12-12 22:46:56 +0000
commitb7a2b7c5dd7596a9ee10e2fd10238d916f52dd8e (patch)
treeb2c8548fd0654bc53607930e72c960fc7066f2f6 /usr.bin/tcopy/tcopy.c
parent580f3319c9eb0f39c49d27d0b354dd7d392782de (diff)
downloadFreeBSD-src-b7a2b7c5dd7596a9ee10e2fd10238d916f52dd8e.zip
FreeBSD-src-b7a2b7c5dd7596a9ee10e2fd10238d916f52dd8e.tar.gz
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.
Diffstat (limited to 'usr.bin/tcopy/tcopy.c')
-rw-r--r--usr.bin/tcopy/tcopy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c
index 35848c0..a3a3819 100644
--- a/usr.bin/tcopy/tcopy.c
+++ b/usr.bin/tcopy/tcopy.c
@@ -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);
}
OpenPOWER on IntegriCloud