fix usage (thanks wiz)

This commit is contained in:
christos 2016-10-30 19:33:49 +00:00
parent 1a5428f3fb
commit 7aaeae4638
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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, 1990, 1993, 1994\
#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);
}