diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-11-21 18:03:19 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-11-21 18:03:19 +0000 |
commit | f69c19bf9cc28fd31eb2f854cacc9cb4b5608b7a (patch) | |
tree | 94afdc9e575625667a04a9efca18c2d0e74f91ba | |
parent | d1d7b874b3324da74716abb8fb820e7c3236b6d9 (diff) |
Oops. sum(1) has a different SYNOPSIS.
-rw-r--r-- | usr.bin/cksum/cksum.c | 9 |
1 files 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 <sys/cdefs.h> @@ -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); } |