summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoratatat <atatat>2003-07-24 00:27:09 +0000
committeratatat <atatat>2003-07-24 00:27:09 +0000
commit6e50554147a8956770a424950705e5b49b0ace72 (patch)
tree26a67b32ad84084d80a2cc3374c2c1cff39093fa
parent3016ebabfeea442dbcd9b3d832d8de2dd80253fa (diff)
downloadpkgsrc-6e50554147a8956770a424950705e5b49b0ace72.tar.gz
Fix the usage line. Addresses PR pkg/22207.
-rw-r--r--pkgtools/digest/files/digest.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgtools/digest/files/digest.c b/pkgtools/digest/files/digest.c
index 92bb55cd35b..72a8d4780bb 100644
--- a/pkgtools/digest/files/digest.c
+++ b/pkgtools/digest/files/digest.c
@@ -1,4 +1,4 @@
-/* $NetBSD: digest.c,v 1.7 2003/06/16 13:35:22 atatat Exp $ */
+/* $NetBSD: digest.c,v 1.8 2003/07/24 00:27:09 atatat Exp $ */
/*
* Copyright (c) 2001 Alistair G. Crooks. All rights reserved.
@@ -39,7 +39,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 2001 \
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: digest.c,v 1.7 2003/06/16 13:35:22 atatat Exp $");
+__RCSID("$NetBSD: digest.c,v 1.8 2003/07/24 00:27:09 atatat Exp $");
#endif
@@ -168,7 +168,8 @@ main(int argc, char **argv)
argv += optind;
if (argc == 0) {
- (void) fprintf(stderr, "Usage: %s algorithm [file...]\n", *argv);
+ (void) fprintf(stderr, "Usage: %s algorithm [file...]\n",
+ argv[-optind]);
return EXIT_FAILURE;
}
if ((alg = find_algorithm(argv[0])) == NULL) {