Module Name:    src
Committed By:   christos
Date:           Sun Oct 30 19:33:49 UTC 2016

Modified Files:
        src/usr.bin/cmp: cmp.1 cmp.c

Log Message:
fix usage (thanks wiz)


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/cmp/cmp.1
cvs rdiff -u -r1.19 -r1.20 src/usr.bin/cmp/cmp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/cmp/cmp.1
diff -u src/usr.bin/cmp/cmp.1:1.10 src/usr.bin/cmp/cmp.1:1.11
--- src/usr.bin/cmp/cmp.1:1.10	Sun Oct 30 15:13:36 2016
+++ src/usr.bin/cmp/cmp.1	Sun Oct 30 15:33:49 2016
@@ -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

Index: src/usr.bin/cmp/cmp.c
diff -u src/usr.bin/cmp/cmp.c:1.19 src/usr.bin/cmp/cmp.c:1.20
--- src/usr.bin/cmp/cmp.c:1.19	Sun Oct 30 15:13:36 2016
+++ src/usr.bin/cmp/cmp.c	Sun Oct 30 15:33:49 2016
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19
 #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 @@ usage(void)
 {
 
 	(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);
 }

Reply via email to