cmp(1) is POSIX compliant so mention it in the manpage

Update format specifiers for -l as specified by POSIX.
This commit is contained in:
sin 2014-11-21 12:31:23 +00:00
parent bb88aa471b
commit 102f579d0f
2 changed files with 7 additions and 1 deletions

6
cmp.1
View File

@ -34,3 +34,9 @@ An error occured.
.Sh SEE ALSO
.Xr comm 1 ,
.Xr diff 1
.Sh STANDARDS
The
.Nm
utility is compliant with the
.St -p1003.1-2008
specification.

2
cmp.c
View File

@ -78,7 +78,7 @@ main(int argc, char *argv[])
argv[0], !argv[1] ? "<stdin>" : argv[1], n, line);
exit(Diff);
} else {
printf("%4ld %3o %3o\n", n, b[0], b[1]);
printf("%ld %o %o\n", n, b[0], b[1]);
same = 0;
}
}