diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 1999-01-21 00:55:32 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 1999-01-21 00:55:32 +0000 |
| commit | 76b5366091f76c9bc73570149ef5055648fc2c39 (patch) | |
| tree | 590d020e0f2a5bea6e09d66d951a674443b21d67 /usr.bin/compress/compress.c | |
| parent | 4b4d01da6f07f7754ff6a6e4f5223e9f0984d1a6 (diff) | |
Diffstat (limited to 'usr.bin/compress/compress.c')
| -rw-r--r-- | usr.bin/compress/compress.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.bin/compress/compress.c b/usr.bin/compress/compress.c index e81963527cbd5..32d94960eb9de 100644 --- a/usr.bin/compress/compress.c +++ b/usr.bin/compress/compress.c @@ -32,13 +32,13 @@ */ #ifndef lint -static const char copyright[] = +static char copyright[] = "@(#) Copyright (c) 1992, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static const char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; +static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; #endif /* not lint */ #include <sys/param.h> @@ -80,7 +80,6 @@ main(argc, argv) int bits, cat, ch; char *p, newname[MAXPATHLEN]; - cat = 0; if ((p = rindex(argv[0], '/')) == NULL) p = argv[0]; else @@ -89,13 +88,10 @@ main(argc, argv) style = DECOMPRESS; else if (!strcmp(p, "compress")) style = COMPRESS; - else if (!strcmp(p, "zcat")) { - cat = 1; - style = DECOMPRESS; - } else + else errx(1, "unknown program name"); - bits = 0; + bits = cat = 0; while ((ch = getopt(argc, argv, "b:cdfv")) != -1) switch(ch) { case 'b': |
