Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/cmp fix usage (thanks wiz)



details:   https://anonhg.NetBSD.org/src/rev/033d096eed08
branches:  trunk
changeset: 348616:033d096eed08
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 30 19:33:49 2016 +0000

description:
fix usage (thanks wiz)

diffstat:

 usr.bin/cmp/cmp.1 |  5 +++--
 usr.bin/cmp/cmp.c |  7 ++++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r cce423b5970a -r 033d096eed08 usr.bin/cmp/cmp.1
--- a/usr.bin/cmp/cmp.1 Sun Oct 30 19:13:36 2016 +0000
+++ b/usr.bin/cmp/cmp.1 Sun Oct 30 19:33:49 2016 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: cmp.1,v 1.10 2016/10/30 19:13:36 christos Exp $
+.\"    $NetBSD: cmp.1,v 1.11 2016/10/30 19:33:49 christos Exp $
 .\"
 .\" Copyright (c) 1987, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -40,7 +40,8 @@
 .Nd compare two files
 .Sh SYNOPSIS
 .Nm
-.Op Fl c | Fl l | Fl s
+.Op Fl c
+.Op Fl l | Fl s
 .Ar file1 file2
 .Op Ar skip1 Op Ar skip2
 .Sh DESCRIPTION
diff -r cce423b5970a -r 033d096eed08 usr.bin/cmp/cmp.c
--- a/usr.bin/cmp/cmp.c Sun Oct 30 19:13:36 2016 +0000
+++ b/usr.bin/cmp/cmp.c Sun Oct 30 19:33:49 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmp.c,v 1.19 2016/10/30 19:13:36 christos Exp $        */
+/*     $NetBSD: cmp.c,v 1.20 2016/10/30 19:33:49 christos Exp $        */
 
 /*
  * Copyright (c) 1987, 1990, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)cmp.c      8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: cmp.c,v 1.19 2016/10/30 19:13:36 christos Exp $");
+__RCSID("$NetBSD: cmp.c,v 1.20 2016/10/30 19:33:49 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -162,6 +162,7 @@
 {
 
        (void)fprintf(stderr,
-           "usage: cmp [-c | -l | -s] file1 file2 [skip1 [skip2]]\n");
+           "Usage: %s [-c] [-l | -s] file1 file2 [skip1 [skip2]]\n",
+           getprogname());
        exit(ERR_EXIT);
 }



Home | Main Index | Thread Index | Old Index