[hackers] [sbase] cmp(1) is POSIX compliant so mention it in the manpage || sin

From: <git_AT_suckless.org>
Date: Fri, 21 Nov 2014 13:32:12 +0100

commit 102f579d0fe32ca0d0c891f2a8fb779a4b62adbd
Author: sin <sin_AT_2f30.org>
Date: Fri Nov 21 12:31:23 2014 +0000

    cmp(1) is POSIX compliant so mention it in the manpage
    
    Update format specifiers for -l as specified by POSIX.

diff --git a/cmp.1 b/cmp.1
index dc345d9..5c9ad0b 100644
--- a/cmp.1
+++ b/cmp.1
_AT_@ -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.
diff --git a/cmp.c b/cmp.c
index a11538e..4e67e96 100644
--- a/cmp.c
+++ b/cmp.c
_AT_@ -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;
                 }
         }
Received on Fri Nov 21 2014 - 13:32:12 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 21 2014 - 13:36:15 CET