From f69c19bf9cc28fd31eb2f854cacc9cb4b5608b7a Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Tue, 21 Nov 2000 18:03:19 +0000 Subject: Oops. sum(1) has a different SYNOPSIS. --- usr.bin/cksum/cksum.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/usr.bin/cksum/cksum.c b/usr.bin/cksum/cksum.c index 307d6cd031a..65ed5530c89 100644 --- a/usr.bin/cksum/cksum.c +++ b/usr.bin/cksum/cksum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cksum.c,v 1.5 2000/11/21 13:22:40 aaron Exp $ */ +/* $OpenBSD: cksum.c,v 1.6 2000/11/21 18:03:18 aaron Exp $ */ /* $NetBSD: cksum.c,v 1.7 1995/09/02 05:45:18 jtc Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95"; #endif -static char rcsid[] = "$OpenBSD: cksum.c,v 1.5 2000/11/21 13:22:40 aaron Exp $"; +static char rcsid[] = "$OpenBSD: cksum.c,v 1.6 2000/11/21 18:03:18 aaron Exp $"; #endif /* not lint */ #include @@ -135,6 +135,9 @@ main(argc, argv) void usage() { - (void)fprintf(stderr, "usage: %s [-o 1 | 2] [file ...]\n", __progname); + if (!strcmp(__progname, "cksum")) + (void)fprintf(stderr, "usage: cksum [-o 1 | 2] [file ...]\n"); + else + (void)fprintf(stderr, "usage: %s [file ...]\n", __progname); exit(1); } -- cgit v1.2.3