diff options
Diffstat (limited to 'usr.bin/fetch/main.c')
| -rw-r--r-- | usr.bin/fetch/main.c | 13 | 
1 files changed, 4 insertions, 9 deletions
| diff --git a/usr.bin/fetch/main.c b/usr.bin/fetch/main.c index 8b24dad4f5c1a..6669ad03be379 100644 --- a/usr.bin/fetch/main.c +++ b/usr.bin/fetch/main.c @@ -24,7 +24,7 @@   * SUCH DAMAGE.   */ -/* $Id: main.c,v 1.48 1998/11/08 23:18:48 des Exp $ */ +/* $Id: main.c,v 1.46 1998/05/09 08:56:07 des Exp $ */  #include <sys/types.h> @@ -52,7 +52,7 @@ static void  usage()  {  	fprintf(stderr, "%s\n%s\n",  -		"usage: fetch [-DHILMNPRTVablmnpqrstv] [-o outputfile] [-S bytes]", +		"usage: fetch [-DHILMNPRTValmnpqrv] [-o outputfile] [-S bytes]",  		"             [-f file -h host [-c dir] | URL]");  	exit(EX_USAGE);  } @@ -71,13 +71,12 @@ main(int argc, char *const *argv)      init_schemes();      fs = clean_fetch_state;      fs.fs_verbose = 1; -    fs.fs_reportsize = 0;      fs.fs_expectedsize = -1;      change_to_dir = file_to_get = hostname = 0; -    while ((c = getopt(argc, argv, "abc:D:f:h:HIlLmMnNo:pPqRrS:stT:vV:")) != -1) { +    while ((c = getopt(argc, argv, "abc:D:f:h:HilLmMnNo:pPqRrS:tT:vV:")) != -1) {  	    switch (c) { -	    case 'D': case 'H': case 'I': case 'L': case 'N': case 'V':  +	    case 'D': case 'H': case 'I': case 'N': case 'L': case 'V':   		    break;	/* ncftp compatibility */  	    case 'a': @@ -136,10 +135,6 @@ main(int argc, char *const *argv)  		    fs.fs_use_connect = 1;  		    break; -	    case 's': -		    fs.fs_reportsize = 1; -		    break; -  	    case 'S':  		    /* strtol sets errno to ERANGE in the case of overflow */  		    errno = 0; | 
