diff options
author | atatat <atatat@pkgsrc.org> | 2003-07-24 00:27:09 +0000 |
---|---|---|
committer | atatat <atatat@pkgsrc.org> | 2003-07-24 00:27:09 +0000 |
commit | 677c3a74db82b3fcdc0a760054338eac7576086d (patch) | |
tree | 26a67b32ad84084d80a2cc3374c2c1cff39093fa /pkgtools | |
parent | 3b9a5f5e2a27fe4284e73f224e38ccd17402d417 (diff) | |
download | pkgsrc-677c3a74db82b3fcdc0a760054338eac7576086d.tar.gz |
Fix the usage line. Addresses PR pkg/22207.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/digest/files/digest.c | 7 |
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) { |