summaryrefslogtreecommitdiffstats
path: root/usr.bin/cmp/misc.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/misc.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/misc.c')
-rw-r--r--usr.bin/cmp/misc.c4
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);
}
OpenPOWER on IntegriCloud