summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-05-04 18:41:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-05-04 18:41:58 +0000
commite681abe1ff982d8c9eb18c001273785293da4eb2 (patch)
treea855dbd6f6fcd3423a96f52b03ee9de66a8ae569 /bin
parentdc1a3fd9f7d5cf20754d1eedff1f330e9d2e7fcb (diff)
sync usage w/ man page
Diffstat (limited to 'bin')
-rw-r--r--bin/md5/md5.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c
index 55418210c1b..9e4ccd7cc97 100644
--- a/bin/md5/md5.c
+++ b/bin/md5/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.29 2004/05/02 17:53:29 millert Exp $ */
+/* $OpenBSD: md5.c,v 1.30 2004/05/04 18:41:57 millert Exp $ */
/*
* Copyright (c) 2001, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -538,14 +538,10 @@ digest_test(struct hash_functions *hf)
__dead void
usage(void)
{
- /* We only list the algorithms when invoked as cksum. */
+ fprintf(stderr, "usage: %s [-p | -t | -x | -c [checklist ...] | "
+ "-s string | file ...]\n", __progname);
if (strcmp(__progname, "cksum") == 0)
- fprintf(stderr,
- "usage: cksum [-a cksum|md4|md5|rmd160|sha1|sha256|sha384|"
- "sha512|sum|sysvsum]\n [-o 1|2] ");
- else
- fprintf(stderr, "usage: %s ", __progname);
- fprintf(stderr, "[-p | -t | -x | -c [checklist ...] | "
- "-s string | file ...]\n");
+ fprintf(stderr, " [-a algorithm] [-o 1 | 2]\n");
+
exit(EXIT_FAILURE);
}