diff options
author | markm <markm@FreeBSD.org> | 2001-12-12 22:46:56 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-12 22:46:56 +0000 |
commit | b7a2b7c5dd7596a9ee10e2fd10238d916f52dd8e (patch) | |
tree | b2c8548fd0654bc53607930e72c960fc7066f2f6 /usr.bin/tcopy | |
parent | 580f3319c9eb0f39c49d27d0b354dd7d392782de (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/tcopy/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/tcopy/tcopy.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tcopy/Makefile b/usr.bin/tcopy/Makefile index 5a42f6d..8a6fc55 100644 --- a/usr.bin/tcopy/Makefile +++ b/usr.bin/tcopy/Makefile @@ -1,5 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ PROG= tcopy +NO_WERROR=yes .include <bsd.prog.mk> 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); } |