diff options
author | phk <phk@FreeBSD.org> | 1995-12-31 09:00:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-31 09:00:24 +0000 |
commit | c3cebb293242feac1e1f1aa0cc5c636b38e2fde0 (patch) | |
tree | 3a408005964ea5427499e4299e02b94ed6f0ca9a /usr.bin/tcopy | |
parent | 2a7f2932b3820648c6c1f514c51c8fb6718abdfb (diff) | |
download | FreeBSD-src-c3cebb293242feac1e1f1aa0cc5c636b38e2fde0.zip FreeBSD-src-c3cebb293242feac1e1f1aa0cc5c636b38e2fde0.tar.gz |
Make the counters unsigned longs so that tapes don't contain negative
number of bytes.
Diffstat (limited to 'usr.bin/tcopy')
-rw-r--r-- | usr.bin/tcopy/tcopy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c index e717499..dea204c 100644 --- a/usr.bin/tcopy/tcopy.c +++ b/usr.bin/tcopy/tcopy.c @@ -60,7 +60,7 @@ static char sccsid[] = "@(#)tcopy.c 8.2 (Berkeley) 4/17/94"; #define NOCOUNT (-2) int filen, guesslen, maxblk = MAXREC; -long lastrec, record, size, tsize; +u_long lastrec, record, size, tsize; FILE *msg = stdout; void *getspace __P((int)); @@ -205,7 +205,7 @@ r1: guesslen = 0; break; } fprintf(msg, - "file %d: eof after %ld records: %ld bytes\n", + "file %d: eof after %lu records: %lu bytes\n", filen, record, size); needeof = 1; filen++; @@ -215,7 +215,7 @@ r1: guesslen = 0; } lastnread = nread; } - fprintf(msg, "total length: %ld bytes\n", tsize); + fprintf(msg, "total length: %lu bytes\n", tsize); (void)signal(SIGINT, oldsig); if (op == COPY || op == COPYVERIFY) { writeop(outp, MTWEOF); |