summaryrefslogtreecommitdiffstats
path: root/usr.bin/cmp/special.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-12-03 20:56:16 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-12-03 20:56:16 +0000
commit2a38aa8ed1caf3b13d80e0dfd4de6e7106fc99b6 (patch)
tree940d4bb02fbc0730ed8e1de011f463d48ae10fcc /usr.bin/cmp/special.c
parentfb311b7cce2693ac7337b1575904b1f71dc02570 (diff)
downloadFreeBSD-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/special.c')
-rw-r--r--usr.bin/cmp/special.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cmp/special.c b/usr.bin/cmp/special.c
index be37f49..5fe0ed1 100644
--- a/usr.bin/cmp/special.c
+++ b/usr.bin/cmp/special.c
@@ -80,7 +80,8 @@ c_special(fd1, file1, skip1, fd2, file2, skip2)
if (ch1 != ch2) {
if (lflag) {
dfound = 1;
- (void)printf("%6qd %3o %3o\n", byte, ch1, ch2);
+ (void)printf("%6lld %3o %3o\n",
+ (long long)byte, ch1, ch2);
} else {
diffmsg(file1, file2, byte, line);
/* NOTREACHED */
OpenPOWER on IntegriCloud