diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 20:56:16 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 20:56:16 +0000 |
commit | 2a38aa8ed1caf3b13d80e0dfd4de6e7106fc99b6 (patch) | |
tree | 940d4bb02fbc0730ed8e1de011f463d48ae10fcc /usr.bin/cmp/misc.c | |
parent | fb311b7cce2693ac7337b1575904b1f71dc02570 (diff) | |
download | FreeBSD-src-2a38aa8ed1caf3b13d80e0dfd4de6e7106fc99b6.zip FreeBSD-src-2a38aa8ed1caf3b13d80e0dfd4de6e7106fc99b6.tar.gz |
Cast off_t to long long before printing. Use %ll instead of %q incase
long long and quad_t are not the same.
Diffstat (limited to 'usr.bin/cmp/misc.c')
-rw-r--r-- | usr.bin/cmp/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cmp/misc.c b/usr.bin/cmp/misc.c index 686fc19..1d5db6c 100644 --- a/usr.bin/cmp/misc.c +++ b/usr.bin/cmp/misc.c @@ -62,7 +62,7 @@ diffmsg(file1, file2, byte, line) off_t byte, line; { if (!sflag) - (void)printf("%s %s differ: char %qd, line %qd\n", - file1, file2, byte, line); + (void)printf("%s %s differ: char %lld, line %lld\n", + file1, file2, (long long)byte, (long long)line); exit(DIFF_EXIT); } |