diff options
author | charnier <charnier@FreeBSD.org> | 1997-07-01 06:37:34 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-07-01 06:37:34 +0000 |
commit | cce3170ff8c1c29ab6e37f1d321d402997adcc01 (patch) | |
tree | d04db63f847f997bf9a7517c14892168207e42a7 /usr.bin/fetch | |
parent | 392cc87247bab93e1b147f7da4cc6d0955a7d5f4 (diff) | |
download | FreeBSD-src-cce3170ff8c1c29ab6e37f1d321d402997adcc01.zip FreeBSD-src-cce3170ff8c1c29ab6e37f1d321d402997adcc01.tar.gz |
Do not use argv[0] in usage().
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/fetch/main.c b/usr.bin/fetch/main.c index 5655c33..b00773f 100644 --- a/usr.bin/fetch/main.c +++ b/usr.bin/fetch/main.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. */ -/* $Id$ */ +/* $Id: main.c,v 1.38 1997/02/22 19:54:57 peter Exp $ */ #include <sys/types.h> @@ -49,11 +49,11 @@ static sigjmp_buf sigbuf; static int get(struct fetch_state *volatile fs); static void -usage(const char *argv0) +usage() { - fprintf(stderr, - "%s: usage:\n\t%s [-DHILMNPRTValmnpqrv] [-o outputfile] " - "[-f file -h host [-c dir] | URL]\n", argv0, argv0); + fprintf(stderr, "%s\n%s\n", + "usage: fetch [-DHILMNPRTValmnpqrv] [-o outputfile]", + " [-f file -h host [-c dir] | URL]\n"); exit(EX_USAGE); } @@ -144,7 +144,7 @@ main(int argc, char *const *argv) default: case '?': - usage(argv[0]); + usage(); } } @@ -152,7 +152,7 @@ main(int argc, char *const *argv) if (argv[optind] && (hostname || change_to_dir || file_to_get)) { warnx("cannot use -h, -c, or -f with a URI argument"); - usage(argv[0]); + usage(); } if (fs.fs_mirror && fs.fs_restart) @@ -164,7 +164,7 @@ main(int argc, char *const *argv) if (hostname == 0) hostname = "localhost"; if (change_to_dir == 0) change_to_dir = ""; if (file_to_get == 0) { - usage(argv[0]); + usage(); } uri = alloca(sizeof("ftp://") + strlen(hostname) + |